其他分享
首页 > 其他分享> > 【SpringBoot】org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

【SpringBoot】org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

作者:互联网

多模块,在使用mybatis-plus时,找不到其他模块的xml 报org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 错误

发现target下mapper包中的xml文件夹没有被编译,在父工程里的pom文件中<build></build>标签添加如下内容

<resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.yml</include>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.yml</include>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
            </resource>
        </resources>

 

标签:xml,SpringBoot,binding,bound,Invalid,ibatis,BindingException
来源: https://www.cnblogs.com/aioe/p/14632803.html