問題描述
通過 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 Hedberg、Michael-O)