1.mybatis设置文件未添加mapper

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

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

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-08-06
  • 2021-04-08
  • 2022-12-23
  • 2021-07-20
猜你喜欢
  • 2021-09-22
  • 2021-04-15
  • 2021-05-28
  • 2021-12-18
  • 2022-12-23
  • 2021-12-17
  • 2021-04-25
相关资源
相似解决方案