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,你們問題解決沒有?

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM