且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

【转载】MyBatis报错Invalid bound statement (not found)

更新时间:2022-06-22 02:39:53

转载自: koal的博客
http://www.cnblogs.com/koal/p/5232388.html

<!--
    IDEA需要添加一下内容,否则无法找到mapper
-->
    <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/web/dal/*/mapper/*Mapper.xml</include>
                </includes>
                <filtering>true</filtering>
            </resource>
        </resources>
    </build>

如果在mybatis的xml配置无误情况下,还出现Invalid bound statement (not found) ,那么就在当前模块的pom.xml中添加此段代码。