Invalid bound statement (not found)之idea打包maven項目問題

開發的一個maven項目,以前在Eclipse中,maven打包部署完後一切正常,後來轉到idea中開發,再用maven打包部署後,java

一直報 Invalid bound statement (not found)錯誤,搗鼓了半天檢查,後來發現打出來的war包裏沒有mapper對應的xml文件app

,解決辦法是在pom中的build標籤下加以下:maven

<resources>    <resource>        <directory>src/main/java</directory>        <includes>            <include>**/*.xml</include>        </includes>        <filtering>false</filtering>    </resource></resources>問題獲得解決
相關文章
相關標籤/搜索