使用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
时间: 2024-10-29 12:27:54