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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2021-06-05
  • 2021-06-25
猜你喜欢
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案