搭建基础maven
新建
点击 “Next”
输入web搜索
填写项目的基本信息,并点击完成
查看web.xml文件查看是否为3.0格式
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
- 查看配置是否正确(这里是wb3.0 jdk1.7 tomcat 7)
到这里maven基础项目已经完成!