报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
原因:mapper 接口与对应的映射 xml 文件放在了用一个包下
解决:
在 prom.xml 的 build 标签下 添加
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources> </build>