ssm异常;

  • 问题:Invalid bound statement (not found): com.itq.mapper.TbItemMapper.selectByExample
  • 解决:修改pom.xml文件中添加如下
<!-- 如果不添加此节点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>

猜你喜欢

转载自www.cnblogs.com/x-m-/p/9903940.html