在mybatis文件中添加
<mappers>
<mapper resource="com/innovationV2/mapper/UserMapper.xml"/>
</mappers>
mapper文件内的namespace需和路径一致
<mapper namespace="com.cskaoyan.StuMapper">
Type interface com.innovationV2.mapper.UserMapper is not known to the MapperRegistry
原文:https://www.cnblogs.com/INnoVationv2/p/14967521.html