- 在pom.xml修改tomcat为tomcat7
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<port>8080</port>
<path>/</path>
</configuration>
</plugin>
- 使用mvn tomcat7:run这个命令来进行运行,不能直接使用tomcat:run