<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources>
maven 配置tomcat插件,若是運行 tomcat7-run ,正常運行。若是變成clean tomcat7-run會找不到mapper ,再按照上述添加java
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources>
maven update的時候注意,會把resource目錄下的文件改變上面圖片中的位置。。。。這時去掉tomcat
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources>
再從新maven update項目即resources可變回原來文件目錄app