1.新建maven项目,搜索webapp
2.pom
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
3.建立相关资源目录
test里面的resources如果建立不了,就切换到navigator来创建
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
test里面的resources如果建立不了,就切换到navigator来创建