完美解决: org.apache.ibatis.binding.BindingException Invalid bound statement (not found)

异常描述: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)java

缘由: springboot整合mybatis, 在编译时, 若是不添加此节点mybatis的mapper.xml文件都会被漏掉, 即只会生成mapper对应的class文件, 而不会生成xml文件spring

解决办法: pom文件添加:apache

<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources> </build>
相关文章
相关标签/搜索