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>

编程异常处理方法

相关文章:

  • 2022-12-23
  • 2021-06-17
  • 2021-09-23
  • 2022-12-23
  • 2021-08-10
  • 2021-12-15
  • 2021-09-15
猜你喜欢
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-04-04
  • 2021-09-02
  • 2022-12-23
相关资源
相似解决方案