ORM(Mybatis)-报错Invalid bound statement (not found): com.********.mapper.StudentMapper.findStudentById

(编程新手)

问题描述:核心提示为Invalid bound statement (not found):

 com.zwh1730090431.mapper.StudentMapper.findStudentById

解决办法:修改mapper配置文件的命名空间和当前路径一致。

出现原因:看代码一致,就复制过来直接使用。然而路径没修改,就是路径还是原来的路径。

经验总结: 配置文件带路径的。复制时记得修改它。

 

解决问题参考连接

https://www.cnblogs.com/liaojie970/p/8034525.html

原文地址:https://www.cnblogs.com/JuniorProgramer/p/13046753.html