接口 EmbeddedServletContainerCustomizer
public interface EmbeddedServletContainerCustomizer
Strategy interface for customizing auto-configured embedded servlet containers. Any beans of this type will get a callback with the container factory before the container itself is started, so you can set the port, address, error pages etc.Beware: calls to this interface are usually made from a
EmbeddedServletContainerCustomizerBeanPostProcessor
which is aBeanPostProcessor
(so called very early in the ApplicationContext lifecycle). It might be safer to lookup dependencies lazily in the enclosing BeanFactory rather than injecting them with@Autowired
.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
customize(ConfigurableEmbeddedServletContainer container)
Customize the specifiedConfigurableEmbeddedServletContainer
.
方法详细资料
customize
void customize(ConfigurableEmbeddedServletContainer container)
Customize the specifiedConfigurableEmbeddedServletContainer
.- 参数:
container
- the container to customize