类的使用
org.springframework.boot.BootstrapContextClosedEvent
-
org.springframework.boot中BootstrapContextClosedEvent的使用
类型变量类型为BootstrapContextClosedEvent的org.springframework.boot中的方法参数修饰符和类型方法说明void
BootstrapRegistry.addCloseListener
(ApplicationListener<BootstrapContextClosedEvent> listener) Add anApplicationListener
that will be called with aBootstrapContextClosedEvent
when theBootstrapContext
is closed and theApplicationContext
has been prepared.void
DefaultBootstrapContext.addCloseListener
(ApplicationListener<BootstrapContextClosedEvent> listener)