mybatis错误Invalid bound statement (not found) 的解决办法

<!--
    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中添加此段代码。

posted @ 2016-03-01 20:21  koal  阅读(2994)  评论(0编辑  收藏  举报