类的使用
org.springframework.boot.context.event.SpringApplicationEvent
使用SpringApplicationEvent的程序包
程序包
说明
Spring Boot's auto-configuration capabilities.
Classes related to Spring's
ApplicationContext.ApplicationEvents triggered by
Spring Boot.-
org.springframework.boot.autoconfigure中SpringApplicationEvent的使用
-
org.springframework.boot.context中SpringApplicationEvent的使用
类型变量类型为SpringApplicationEvent的org.springframework.boot.context中的方法参数修饰符和类型方法说明voidApplicationPidFileWriter.setTriggerEventType(Class<? extends SpringApplicationEvent> triggerEventType) Sets the type of application event that will trigger writing of the PID file. -
org.springframework.boot.context.event中SpringApplicationEvent的使用
修饰符和类型类说明classEvent published when aSpringApplicationis starting up and theApplicationContextis prepared and ApplicationContextInitializers have been called but before any bean definitions are loaded.classEvent published when aSpringApplicationis starting up and theEnvironmentis first available for inspection and modification.classEvent published by aSpringApplicationwhen it fails to start.classEvent published as when aSpringApplicationis starting up and theApplicationContextis fully prepared but not refreshed.classEvent published as late as conceivably possible to indicate that the application is ready to service requests.classEvent published once the application context has been refreshed but before anyapplicationandcommand linerunners have been called.classEvent published as early as conceivably possible as soon as aSpringApplicationhas been started - before theEnvironmentorApplicationContextis available, but after theApplicationListeners have been registered.