使用idea的springboot项目出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
参考:
https://www.cnblogs.com/lfm601508022/p/InvalidBoundStatement.html
https://blog.csdn.net/xsggsx/article/details/77248588
原因 : 编译后xml文件没有编译到class文件夹内


解决办法:
1 可以手动拷贝过去
2 在pom中配置:

<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
浙公网安备 33010602011771号