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

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

原因: springboot整合mybatis, 在编译时, 如果不添加此节点mybatis的mapper.xml文件都会被漏掉, 即只会生成mapper对应的class文件, 而不会生成xml文件

解决办法: pom文件添加:

    <build>
        <resources>
            <resource> <directory>src/main/javadirectory> <includes> <include>**/*.xmlinclude> includes> resource> resources> build>

转载于:https://www.cnblogs.com/qianzf/p/11606709.html

你可能感兴趣的:(完美解决: org.apache.ibatis.binding.BindingException Invalid bound statement (not found))