异常信息: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>

 

 

 

 

Mybatis异常_01_Invalid bound statement (not found)

 

 

Mybatis异常_01_Invalid bound statement (not found)

 

相关文章:

  • 2021-09-09
  • 2021-12-09
  • 2021-11-26
  • 2021-11-30
  • 2021-04-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-14
  • 2021-09-19
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案