1. 建立maven项目:
使用命令
mvn archetype:generate -DgroupId=org.seckill -DartifactId=seckill -DarchetypeArtifactId=maven-archetype-webapp
生成的WEB-INF下面的web.xml版本为2.3,无法使用el表达式,拷贝D:javaapache-tomcat-7.0.62webappsexamplesWEB-INF下面的web.xml文件的头部信息到我们的web.xml中,修改版本为3.0