编程异常处理方法

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

典型的找不到mapper映射文件的异常


解决方法:

修改taotao-manager-mapperpom文件

pom文件中添加如下内容:

<!-- 如果不添加此节点mybatismapper.xml文件都会被漏掉。 -->

<build>

<resources>

            <resource>

                <directory>src/main/java</directory>

                <includes>

                    <include>**/*.properties</include>

                    <include>**/*.xml</include>

                </includes>

                <filtering>false</filtering>

            </resource>

        </resources>

</build>

猜你喜欢

转载自blog.csdn.net/qq_29518175/article/details/76251230