类的使用
org.springframework.boot.BootstrapContextClosedEvent
-
org.springframework.boot中BootstrapContextClosedEvent的使用
类型变量类型为BootstrapContextClosedEvent的org.springframework.boot中的方法参数修饰符和类型方法说明voidBootstrapRegistry.addCloseListener(ApplicationListener<BootstrapContextClosedEvent> listener) Add anApplicationListenerthat will be called with aBootstrapContextClosedEventwhen theBootstrapContextis closed and theApplicationContexthas been prepared.voidDefaultBootstrapContext.addCloseListener(ApplicationListener<BootstrapContextClosedEvent> listener)