springboot+mybatis报错Invalid bound statement (not found)

今天作项目时报了一个错提示说Invalid bound statement (not found),也就是说mapper接口绑定.xml文件出错了,找不到指定的sql;缘由是程序没有把.xml文件编译到classes路径下,这时须要在pom.xml文件的<build>标签中加入下面的配置解决 <resources> <!-- maven项目中src源代码下的xml等资源文件编译进class
相关文章
相关标签/搜索