tomcat7-maven-plugin 端口

不知道有没有人像我这样,在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,你们问题解决没有?

 

posted on 2017-08-12 14:13  幻林的地盘  阅读(1622)  评论(0编辑  收藏  举报

导航