jetty server 9.1 multiple embeded ports and application in same server instance
问题 I should use one Server object, and need to open multiple ports and multiple application(WAR files). Ex, one server object, 8080 addition.war 8081 subraction.war etc. I'm using Jetty server 9.1.0 How can I do this? 回答1: To accomplish this, you need: Each ServerConnector should have a unique name declared via ServerConnector.setName(String) When you define your WebAppContext, declare a set of virtual hosts that take a named virtual host syntax "@{name}" , where the {name} is the same one you