枚举类的使用
org.springframework.boot.web.server.Shutdown
使用Shutdown的程序包
程序包
说明
Auto-configuration for common web concerns.
Embedded reactive web server implementation backed by Netty.
Embedded reactive and servlet web server implementations backed by Tomcat.
Support for embedded web servers.
-
org.springframework.boot.autoconfigure.web中Shutdown的使用
-
org.springframework.boot.web.embedded.netty中Shutdown的使用
限定符构造器说明NettyWebServer(reactor.netty.http.server.HttpServer httpServer, ReactorHttpHandlerAdapter handlerAdapter, Duration lifecycleTimeout, Shutdown shutdown, ReactorResourceFactory resourceFactory) Creates a newNettyWebServerinstance. -
org.springframework.boot.web.embedded.tomcat中Shutdown的使用
限定符构造器说明TomcatWebServer(Tomcat tomcat, boolean autoStart, Shutdown shutdown) Create a newTomcatWebServerinstance. -
org.springframework.boot.web.server中Shutdown的使用
修饰符和类型方法说明AbstractConfigurableWebServerFactory.getShutdown()Returns the shutdown configuration that will be applied to the server.static Shutdown返回带有指定名称的该类的枚举常量。static Shutdown[]Shutdown.values()返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同修饰符和类型方法说明voidAbstractConfigurableWebServerFactory.setShutdown(Shutdown shutdown) default voidConfigurableWebServerFactory.setShutdown(Shutdown shutdown) Sets the shutdown configuration that will be applied to the server.