首页 > 其他 > 详细

tomcat7-maven-plugin 端口

时间:2017-08-12 14:31:16      阅读:271      评论:0      收藏:0      [点我收藏+]

不知道有没有人像我这样,在pom配置了下面这段之后,

<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<configuration>
<path>/</path>
<port>8090</port>
</configuration>
</plugin>
</plugins>

下一步右键maven build,写上clean tomcat:run之后,发现启动的端口并不是配置的端口8090,

并且路径也不是 /  ,而是 Running war on http://localhost:8080/xxxx。

怎么search 8080 都没有,其实问题出在clean tomcat:run,改成clean tomcat7:run,OK,你们问题解决没有?

 

tomcat7-maven-plugin 端口

原文:http://www.cnblogs.com/huanlinll/p/7350050.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!