@Configuration @EnableConfigurationProperties @ConditionalOnWebApplication public class ServerPropertiesAutoConfiguration extends Object implements ApplicationContextAware, EmbeddedServletContainerCustomizer
Auto-configuration
that configures the
ConfigurableEmbeddedServletContainerFactory
from a ServerProperties
bean.Constructor and Description |
---|
ServerPropertiesAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
customize(ConfigurableEmbeddedServletContainerFactory factory)
Customize the specified
ConfigurableEmbeddedServletContainerFactory . |
ServerProperties |
serverProperties() |
void |
setApplicationContext(ApplicationContext applicationContext) |
@Bean @ConditionalOnMissingBean(search=CURRENT) public ServerProperties serverProperties()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public void customize(ConfigurableEmbeddedServletContainerFactory factory)
EmbeddedServletContainerCustomizer
ConfigurableEmbeddedServletContainerFactory
.customize
in interface EmbeddedServletContainerCustomizer
factory
- the factory to customizeCopyright © 2014. All rights reserved.