eclipse下载maven插件,MyEclipse中集成了maven
steps:1.project-->maven Project-->next
2.select webapp(maven-archetype-webapp)-->next
3.inputs attributes:groupId,artifactId,version-->next
更改属性:property-->Resource-->text file encoding-->other(utf-8)
m2.xml-->mirror 添加阿里云镜像仓库地址
java build path-->jre-system-library-->add library-->JRE-system-library-->workspace-default-jre
目录结构:java Resources-->
src/main/java
src/main/resources
src/test/java
web-app-->
web-inf
pom.xml---->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
</dependency>