码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2021-04-09 12:59:31      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:color   编译   code   app   pom   rgb   include   bin   boot   

多模块,在使用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>

 

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

标签:color   编译   code   app   pom   rgb   include   bin   boot   

原文地址:https://www.cnblogs.com/aioe/p/14632803.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!