Polish contribution

Closes gh-4770
pull/4756/merge
Stephane Nicoll 9 years ago
parent 288aa962c4
commit f269383803

@ -42,11 +42,11 @@ public class SampleTomcatTwoConnectorsApplication {
@Bean
public EmbeddedServletContainerFactory servletContainer() {
TomcatEmbeddedServletContainerFactory tomcat = new TomcatEmbeddedServletContainerFactory();
tomcat.addAdditionalTomcatConnectors(createNonSslConnector());
tomcat.addAdditionalTomcatConnectors(createStandardConnector());
return tomcat;
}
private Connector createNonSslConnector() {
private Connector createStandardConnector() {
Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
connector.setPort(port());
return connector;

Loading…
Cancel
Save