|
|
@ -137,7 +137,7 @@ public class JettyServletWebServerFactory extends AbstractServletWebServerFactor
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public WebServer getWebServer(ServletContextInitializer... initializers) {
|
|
|
|
public WebServer getWebServer(ServletContextInitializer... initializers) {
|
|
|
|
JettyEmbeddedWebAppContext context = new JettyEmbeddedWebAppContext();
|
|
|
|
JettyEmbeddedWebAppContext context = new JettyEmbeddedWebAppContext();
|
|
|
|
int port = (getPort() >= 0) ? getPort() : 0;
|
|
|
|
int port = Math.max(getPort(), 0);
|
|
|
|
InetSocketAddress address = new InetSocketAddress(getAddress(), port);
|
|
|
|
InetSocketAddress address = new InetSocketAddress(getAddress(), port);
|
|
|
|
Server server = createServer(address);
|
|
|
|
Server server = createServer(address);
|
|
|
|
configureWebAppContext(context, initializers);
|
|
|
|
configureWebAppContext(context, initializers);
|
|
|
|