Maven异常_05_Invalid bound statement (not found)

Posted shirayner

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Maven异常_05_Invalid bound statement (not found)相关的知识,希望对你有一定的参考价值。

异常信息:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.taotao.mapper.TbItemMapper.selectByExample

 

原因:找不到mapper映射文件

 

解决方法:修改taotao-manager-mapper的pom文件,在pom文件中添加如下内容:

<!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->
    <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>
    </build>

 

 

 

 

 

 

 

以上是关于Maven异常_05_Invalid bound statement (not found)的主要内容,如果未能解决你的问题,请参考以下文章

mybatis绑定错误-- Invalid bound statement (not found)

Invalid bound statement (not found)之idea打包maven项目问题

解决maven项目Invalid bound statement (not found)的方法

Mybatis 异常记录: Invalid bound statement (not found)

mybatis 异常处理:Invalid bound statement (not found)

解决Invalid bound statement (not found)的异常