接口 ServletWebServerFactory
- 所有超级接口:
WebServerFactory
- 所有已知子接口:
ConfigurableServletWebServerFactory
- 所有已知实现类:
AbstractServletWebServerFactory,JettyServletWebServerFactory,TomcatServletWebServerFactory,UndertowServletWebServerFactory
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Factory interface that can be used to create a
WebServer.- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb
- 另请参阅:
-
方法概要
修饰符和类型方法说明getWebServer(ServletContextInitializer... initializers) Gets a new fully configured but pausedWebServerinstance.
-
方法详细资料
-
getWebServer
Gets a new fully configured but pausedWebServerinstance. Clients should not be able to connect to the returned server untilWebServer.start()is called (which happens when theApplicationContexthas been fully refreshed).- 参数:
initializers-ServletContextInitializers that should be applied as the server starts- 返回:
- a fully configured and started
WebServer - 另请参阅:
-