org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
在springboot与Mybatis项目中,经常会出现上述错误,很久不使用mybatis,碰到这种问题就很头大。特此总结。
1、pom.xml文件配置resources
首先,这次我自己的项目报错,是因为pom文件缺少配置resources,它来指定mapper.xml所在文件位置,不然mapper.xml文件就会被漏掉。
<resources>
<resource>
<directory>src/ma
原创
2021-03-17 21:41:55 ·
67 阅读 ·
0 评论