Class ServletWebServerFactoryAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration
@AutoConfiguration
@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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Registers aWebServerFactoryCustomizerBeanPostProcessor
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionservletWebServerFactoryCustomizer
(ServerProperties serverProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.servlet.WebListenerRegistrar> webListenerRegistrars, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.servlet.server.CookieSameSiteSupplier> cookieSameSiteSuppliers) tomcatServletWebServerFactoryCustomizer
(ServerProperties serverProperties)
-
Constructor Details
-
ServletWebServerFactoryAutoConfiguration
public ServletWebServerFactoryAutoConfiguration()
-
-
Method Details
-
servletWebServerFactoryCustomizer
@Bean public ServletWebServerFactoryCustomizer servletWebServerFactoryCustomizer(ServerProperties serverProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.servlet.WebListenerRegistrar> webListenerRegistrars, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.servlet.server.CookieSameSiteSupplier> cookieSameSiteSuppliers) -
tomcatServletWebServerFactoryCustomizer
@Bean @ConditionalOnClass(name="org.apache.catalina.startup.Tomcat") public TomcatServletWebServerFactoryCustomizer tomcatServletWebServerFactoryCustomizer(ServerProperties serverProperties)
-