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