解决mapper文件夹下的xml没有被加载的问题(Maven问题)
今天在写SpringBoot整合MyBatis Plus项目的时候,发现找不到我写在xml文件中的sql语句,提示内容:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): xxx.SalaryMapper.getByType此时,在target文件夹中可以看到xml文件然后我就忽略了检查在配置文件(application.properties)中配置的扫描路径最后发现是路径填写错误的问
原创
2021-04-01 18:05:47 ·
3089 阅读 ·
0 评论