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>
相關文章
相關標籤/搜索