- <build>
- <plugins>
- <!-- 配置Tomcat插件 ,用于启动项目 -->
- <plugin>
- <groupId>org.apache.tomcat.maven</groupId>
- <artifactId>tomcat7-maven-plugin</artifactId>
- <!--如果不设置,则默认为猫的自定义端口,项目路径为http://localhost:默认端口/项目名 -->
- <configuration>
- <!--如果端口号改为8081:那么访问的时候路径的端口就要写成8081,否则404 -->
- <port>8080</port>
- <!-- 如果设置为/,则项目了路径为http://localhost:端口号 /-->
- <!-- 如果设置为/123,则项目了路径为http://localhost:端口号/123 -->
- <path>/123</path>
- </configuration>
- </plugin>
- </plugins>
- </build>
关于pom文件中Tomcat插件的设置
猜你喜欢
转载自blog.csdn.net/zxz9325/article/details/79167944
今日推荐
周排行