解决:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
报错信息:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
搭建SpringBoot项目的时候突然报错
错误分析:
在用maven配置mybatis环境时出现此BindingExceptiony异常,发现在classes文件下没有mapper配置文件,应该是maven项目没有扫描到mapper包下的xml文件,
在pom.xml中加入一下代码可以解决:
<build>
原创
2021-01-14 18:13:22 ·
369 阅读 ·
0 评论