This commit is contained in:
Phillip Webb
2017-04-28 10:59:14 -07:00
parent 1ee9653f7c
commit 72813a47e7
5 changed files with 53 additions and 48 deletions

View File

@@ -2382,7 +2382,7 @@ methods. Dedicated variants exists for Tomcat, Jetty and Undertow.
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
import org.springframework.stereotype.Component;
@Component
public class CustomizationBean implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> {
@@ -2390,7 +2390,7 @@ methods. Dedicated variants exists for Tomcat, Jetty and Undertow.
public void customize(ConfigurableServletWebServerFactory server) {
server.setPort(9000);
}
}
----