完美解決: 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>
相關文章
相關標籤/搜索