maven 項目報錯org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)解決

idea在使用maven構建的項目中使用mybatis時報錯org.apache.ibatis.binding.BindingException: Invalid bound statement (not found),檢查了mybatis的配置都沒問題後,最終在pom文件中的build中增長如下配置解決:java

<resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
        </resources>
相關文章
相關標籤/搜索