类的使用
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中的方法参数修饰符和类型方法说明void
ApplicationPidFileWriter.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的使用
修饰符和类型类说明class
Event published when aSpringApplication
is starting up and theApplicationContext
is prepared and ApplicationContextInitializers have been called but before any bean definitions are loaded.class
Event published when aSpringApplication
is starting up and theEnvironment
is first available for inspection and modification.class
Event published by aSpringApplication
when it fails to start.class
Event published as when aSpringApplication
is starting up and theApplicationContext
is fully prepared but not refreshed.class
Event published as late as conceivably possible to indicate that the application is ready to service requests.class
Event published once the application context has been refreshed but before anyapplication
andcommand line
runners have been called.class
Event published as early as conceivably possible as soon as aSpringApplication
has been started - before theEnvironment
orApplicationContext
is available, but after theApplicationListener
s have been registered.