使用tomcat插件来访问maven

  1 先下载tomcat插件(在pom中配置)

            <!-- 配置Tomcat插件 -->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<configuration>
<port>8001</port>
<path>/springmvc</path>
</configuration>
</plugin> port:tomcat端口号
path:访问应用的路径

  2 运行

    Run As --> Maven Build

  Maven   配置tomcat插件-LMLPHP

05-11 10:52