通過 Maven 運行 Tomcat 時如何將其綁定到特定接口? (How do you bind Tomcat to a specific interface when running it through Maven?)


問題描述

通過 Maven 運行 Tomcat 時如何將其綁定到特定接口? (How do you bind Tomcat to a specific interface when running it through Maven?)

By default Tomcat only listens on localhost when run using "mvn tomcat:run". How can I bind to a specific, or all, interfaces instead?


參考解法

方法 1:

Use the serverXml option.

(by Fredrik HedbergMichael-O)

參考文件

  1. How do you bind Tomcat to a specific interface when running it through Maven? (CC BY-SA 3.0/4.0)

#maven #tomcat






相關問題

jslint-maven-plugin 1.0.2-SNAPSHOT 存儲庫 (jslint-maven-plugin 1.0.2-SNAPSHOT repository)

當 Action 類位於單獨的 jar 文件中時,Struts 2 驗證失敗 (Struts 2 Validation failing when Action class sits in a separate jar file)

Marklogic 是否有 liquibase 等價物 (Is there a liquibase equivalent for Marklogic)

Jenkins插件開發不適用於maven 2 (Jenkins plugin development not working with maven 2)

無法構建 CloudHopper (SMPP) (Cannot build CloudHopper (SMPP))

如何使用 Maven 在目標(SVN-)服務器上創建 Javadoc? (How to create Javadoc on the target (SVN-) server using Maven?)

sbt 相當於 maven exec 插件 (sbt equivalent of maven exec plugin)

從 Ecplise 運行 Mule 應用程序時出現 NoSuchMethodError 異常 (NoSuchMethodError exception when run Mule Application from Ecplise)

intellij idea中-X和-e開關在哪裡打開 (Where to open the -X and -e switch in intellij idea)

無法在項目上執行目標 org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test)。 (Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.)

通過 Maven 運行 Tomcat 時如何將其綁定到特定接口? (How do you bind Tomcat to a specific interface when running it through Maven?)

如何配置必須使用“密碼”授權類型從授權服務器請求令牌的客戶端 Java 應用程序? (How do I configure a client Java application which must request a token from an authorization server using a 'password' grant type?)







留言討論