- ApplicationStartingEvent: The event executed when spring boot starts
- ApplicationEnvironmentPreparedEvent: Spring boot's corresponding Environment has been prepared, but the context has not been created at this time
- ApplicationPreparedEvent: The spring boot context is created, but the beans in spring are not fully loaded at this time
- ApplicationFailedEvent: execute event when spring boot starts abnormally
- ApplicationReadyEvent: This event indicates that the application should be initialized and ready to receive requests
[Listener of spring-boot study notes]
http://www.jianshu.com/p/edd4cb960da7
[SpringApplication events and Spring common events]
http://www.jianshu.com/p/73f95875557a
[Springboot's ApplicationReadyEvent]
public class ApplicationReadyEventListener implements ApplicationListener<ApplicationReadyEvent>, Ordered { @Override public void onApplicationEvent(ApplicationReadyEvent applicationReadyEvent) { System.out.println("############started"); } @Override public int getOrder() { return Ordered.LOWEST_PRECEDENCE; } }
https://segmentfault.com/a/1190000008405515
[SpringBoot principle (2): run]
http://www.jianshu.com/p/692b10aef052
spring boot actual combat (second) event monitoring
http://blog.csdn .net/liaokailin/article/details/48186331