@Configuration @AutoConfigureOrder(value=-2147483648) @ConditionalOnClass(value=javax.servlet.ServletRequest.class) @ConditionalOnWebApplication(type=SERVLET) @EnableConfigurationProperties(value=ServerProperties.class) @Import(value={ServletWebServerFactoryAutoConfiguration.BeanPostProcessorsRegistrar.class,org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryConfiguration.EmbeddedTomcat.class,org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryConfiguration.EmbeddedJetty.class,org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryConfiguration.EmbeddedUndertow.class}) public class ServletWebServerFactoryAutoConfiguration extends Object
Auto-configuration
for servlet web servers.Modifier and Type | Class and Description |
---|---|
static class |
ServletWebServerFactoryAutoConfiguration.BeanPostProcessorsRegistrar
Registers a
WebServerFactoryCustomizerBeanPostProcessor . |
Constructor and Description |
---|
ServletWebServerFactoryAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
ServletWebServerFactoryCustomizer |
servletWebServerFactoryCustomizer(ServerProperties serverProperties) |
TomcatServletWebServerFactoryCustomizer |
tomcatServletWebServerFactoryCustomizer(ServerProperties serverProperties) |
public ServletWebServerFactoryAutoConfiguration()
@Bean public ServletWebServerFactoryCustomizer servletWebServerFactoryCustomizer(ServerProperties serverProperties)
@Bean @ConditionalOnClass(name="org.apache.catalina.startup.Tomcat") public TomcatServletWebServerFactoryCustomizer tomcatServletWebServerFactoryCustomizer(ServerProperties serverProperties)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.