接口的使用
org.springframework.boot.SpringApplicationShutdownHandlers
-
org.springframework.boot中SpringApplicationShutdownHandlers的使用
修饰符和类型方法说明SpringApplication.getShutdownHandlers()
Return aSpringApplicationShutdownHandlers
instance that can be used to add or remove handlers that perform actions before the JVM is shutdown.