@Configuration @EnableConfigurationProperties(value=RewriteProperties.class) @ConditionalOnClass(value=org.ocpsoft.rewrite.servlet.RewriteFilter.class) @AutoConfigureAfter(value=org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.class) @ConditionalOnWebApplication(type=SERVLET) public class RewriteAutoConfiguration extends Object
Constructor and Description |
---|
RewriteAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
ApplicationContextProvider |
applicationContextProvider() |
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory> |
rewriteWebServerFactoryCustomizer()
This
WebServerFactoryCustomizer adds a ServletContextInitializer to the embedded servlet-container
which is equivalent to rewrite's own META-INF/web-fragment.xml . |
@DependsOn(value="applicationContextProvider") @Bean public org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory> rewriteWebServerFactoryCustomizer()
WebServerFactoryCustomizer
adds a ServletContextInitializer
to the embedded servlet-container
which is equivalent to rewrite's own META-INF/web-fragment.xml
.@Bean public ApplicationContextProvider applicationContextProvider()
Copyright © 2016–2018 JoinFaces. All rights reserved.