错误:

### Error querying database.  Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.zhbit.Dao.impl.StudentDaoImpl.getStudentById

### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.zhbit.Dao.impl.StudentDaoImpl.getStudentById

出现此类错误主要有:

1.Mapper.xml namespace:接口名错误。或加l .xml

2.Mapper.xml中的方法和接口的mapping方法不对应

3.Mapper.xml没有加入mybatis-config.xml配置

4.Mapper.xml文件名和所写下的mapper名称不同

但是啊,我不是这个问题

Mybatic: Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain

selectone()方法里,应该是接口下的方法!!

相关文章:

  • 2021-06-23
  • 2021-12-13
  • 2021-07-24
  • 2021-10-01
猜你喜欢
  • 2021-11-22
  • 2021-04-08
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
相关资源
相似解决方案