天天看點

【轉載】MyBatis報錯Invalid bound statement (not found)

轉載自: 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中添加此段代碼。