mven web 注意事项
maven web
注意事项
1. maven 项目默认不会把 Libraries
排出到 web/WEB-INF/lib
下
-
点击
file
->Project Structure...
打开项目结构 -
点击
Artifacts
-
点击
Put into Output Root
2 . mvaen 默认不会排出 xml 文件,在 pom 文件中添加
<!-- 强制排出 --> <build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources> </build>