您的位置:首页 > 博客中心 > APP开发 >

Type interface com.innovationV2.mapper.UserMapper is not known to the MapperRegistry

时间:2022-09-07 11:14

1.mybatis设置文件未添加mapper

在mybatis文件中添加
<mappers>
  <mapper resource="com/innovationV2/mapper/UserMapper.xml"/>
</mappers>

2.mapper文件的命名空间设置错误

mapper文件内的namespace需和路径一致
<mapper namespace="com.cskaoyan.StuMapper">

相关推荐

电脑软件

本类排行

今日推荐

热门手游