Invalid bound statement (not found) 无效的绑定语句(未找到)

如题,在排查了 https://blog.csdn.net/weixin_44695793/article/details/107752054 里面的所有解决方案后,又想到可能是配置文件的问题,经排查发现是在application.properties文件中配置了mapper文件的映射路径。

我的命名是StudentDao.xml,而我的映射路径中是*Mapper.xml,故无法扫描到xml文件

 

 

解决方案:

1、将配置文件中的*Mapper.xml修改为*.xml

2、将xml文件重命名为Mapper.xml结尾

二选一即可

posted @ 2021-07-06 10:23  几度失手ya  阅读(292)  评论(1编辑  收藏  举报