@AutoConfigureOrder(value=-2147483648) @Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.http.ReactiveHttpInputMessage.class) @ConditionalOnWebApplication(type=REACTIVE) @EnableConfigurationProperties(value=ServerProperties.class) @Import(value={ReactiveWebServerFactoryAutoConfiguration.BeanPostProcessorsRegistrar.class,org.springframework.boot.autoconfigure.web.reactive.ReactiveWebServerFactoryConfiguration.EmbeddedTomcat.class,org.springframework.boot.autoconfigure.web.reactive.ReactiveWebServerFactoryConfiguration.EmbeddedJetty.class,org.springframework.boot.autoconfigure.web.reactive.ReactiveWebServerFactoryConfiguration.EmbeddedUndertow.class,org.springframework.boot.autoconfigure.web.reactive.ReactiveWebServerFactoryConfiguration.EmbeddedNetty.class}) public class ReactiveWebServerFactoryAutoConfiguration extends Object
Auto-configuration
for a reactive web server.Modifier and Type | Class and Description |
---|---|
static class |
ReactiveWebServerFactoryAutoConfiguration.BeanPostProcessorsRegistrar
Registers a
WebServerFactoryCustomizerBeanPostProcessor . |
Constructor and Description |
---|
ReactiveWebServerFactoryAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
ForwardedHeaderTransformer |
forwardedHeaderTransformer() |
ReactiveWebServerFactoryCustomizer |
reactiveWebServerFactoryCustomizer(ServerProperties serverProperties) |
TomcatReactiveWebServerFactoryCustomizer |
tomcatReactiveWebServerFactoryCustomizer(ServerProperties serverProperties) |
public ReactiveWebServerFactoryAutoConfiguration()
@Bean public ReactiveWebServerFactoryCustomizer reactiveWebServerFactoryCustomizer(ServerProperties serverProperties)
@Bean @ConditionalOnClass(name="org.apache.catalina.startup.Tomcat") public TomcatReactiveWebServerFactoryCustomizer tomcatReactiveWebServerFactoryCustomizer(ServerProperties serverProperties)
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="server.forward-headers-strategy", havingValue="framework") public ForwardedHeaderTransformer forwardedHeaderTransformer()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.