1.在pom.xml中配置插件
<plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <path>/TestWeb</path> <port>8080</port> </configuration> </plugin>
2.右侧打开Maven -> tomcat7 ->tomcat7:run(双击)
3.浏览器访问
标签:tomcat7,插件,tomcat,maven,pom,双击 From: https://www.cnblogs.com/leelong/p/17658218.html