org.apache.ibatis.binding.BindingException Invalid bound statement (not found)

运行maven项目,出现报错:org.apache.ibatis.binding.BindingException Invalid bound statement (not found)

 

检查发现,tomcat下该项目的代码中没有对应的mapper文件,说明maven打包时,并未将对应文件打包。

修改pom文件配置,添加如下内容后,重启tomcat,解决

<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
posted @ 2019-04-27 22:02  到三国卖栗子  阅读(154)  评论(0编辑  收藏  举报