Class ServletWebServerFactoryAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration
@Configuration(proxyBeanMethods=false)
@AutoConfigureOrder(-2147483648)
@ConditionalOnClass(jakarta.servlet.ServletRequest.class)
@ConditionalOnWebApplication(type=SERVLET)
@EnableConfigurationProperties(ServerProperties.class)
@Import({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.- Since:
- 2.0.0
- Author:
- Phillip Webb, Dave Syer, Ivan Sopov, Brian Clozel, Stephane Nicoll
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Registers aWebServerFactoryCustomizerBeanPostProcessor
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionservletWebServerFactoryCustomizer
(ServerProperties serverProperties, ObjectProvider<WebListenerRegistrar> webListenerRegistrars, ObjectProvider<CookieSameSiteSupplier> cookieSameSiteSuppliers) tomcatServletWebServerFactoryCustomizer
(ServerProperties serverProperties)
-
Constructor Details
-
ServletWebServerFactoryAutoConfiguration
public ServletWebServerFactoryAutoConfiguration()
-
-
Method Details
-
servletWebServerFactoryCustomizer
@Bean public ServletWebServerFactoryCustomizer servletWebServerFactoryCustomizer(ServerProperties serverProperties, ObjectProvider<WebListenerRegistrar> webListenerRegistrars, ObjectProvider<CookieSameSiteSupplier> cookieSameSiteSuppliers) -
tomcatServletWebServerFactoryCustomizer
@Bean @ConditionalOnClass(name="org.apache.catalina.startup.Tomcat") public TomcatServletWebServerFactoryCustomizer tomcatServletWebServerFactoryCustomizer(ServerProperties serverProperties) -
forwardedHeaderFilter
@Bean @ConditionalOnMissingFilterBean(org.springframework.web.filter.ForwardedHeaderFilter.class) @ConditionalOnProperty(value="server.forward-headers-strategy", havingValue="framework") public FilterRegistrationBean<ForwardedHeaderFilter> forwardedHeaderFilter()
-