程序包 org.springframework.boot.context.event
ApplicationEvents
triggered by Spring Boot.类概要 类 说明 ApplicationEnvironmentPreparedEvent Event published when aSpringApplication
is starting up and theEnvironment
is first available for inspection and modification.ApplicationFailedEvent Event published by aSpringApplication
when it fails to start.ApplicationPreparedEvent Event published as when aSpringApplication
is starting up and theApplicationContext
is fully prepared but not refreshed.ApplicationReadyEvent Event published as late as conceivably possible to indicate that the application is ready to service requests.ApplicationStartedEvent 已过时。 as of 1.5 in favor ofApplicationStartingEvent
ApplicationStartingEvent 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.EventPublishingRunListener SpringApplicationRunListener
to publishSpringApplicationEvent
s.SpringApplicationEvent Base class forApplicationEvent
related to aSpringApplication
.