接口 WebServerFactoryCustomizer<T extends WebServerFactory>
- 类型参数:
T- the configurable web server factory
- 所有已知实现类:
JettyVirtualThreadsWebServerFactoryCustomizer,JettyWebServerFactoryCustomizer,JettyWebSocketReactiveWebServerCustomizer,JettyWebSocketServletWebServerCustomizer,ManagementWebServerFactoryCustomizer,NettyWebServerFactoryCustomizer,ReactiveWebServerFactoryCustomizer,ServletWebServerFactoryCustomizer,TomcatReactiveWebServerFactoryCustomizer,TomcatServletWebServerFactoryCustomizer,TomcatVirtualThreadsWebServerFactoryCustomizer,TomcatWebServerFactoryCustomizer,TomcatWebSocketReactiveWebServerCustomizer,TomcatWebSocketServletWebServerCustomizer,UndertowServletWebServerFactoryCustomizer,UndertowWebServerFactoryCustomizer,UndertowWebSocketServletWebServerCustomizer
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Strategy interface for customizing
web server factories. Any
beans of this type will get a callback with the server factory before the server itself
is started, so you can set the port, address, error pages etc.
Beware: calls to this interface are usually made from a
WebServerFactoryCustomizerBeanPostProcessor which is a
BeanPostProcessor (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.
- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb, Dave Syer, Brian Clozel
- 另请参阅:
-
方法概要
-
方法详细资料
-
customize
Customize the specifiedWebServerFactory.- 参数:
factory- the web server factory to customize
-