<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources>
maven 配置tomcat插件,如果运行 tomcat7-run ,正常运行。如果变成clean tomcat7-run会找不到mapper ,再按照上述添加
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources>
maven update的时候注意,会把resource目录下的文件改变上面图片中的位置。。。。这时去掉
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources>
再重新maven update项目即resources可变回原来文件目录