Hi, I’m DD!

ApplicationStartedEvent: ContextStartedEvent: ContextStartedEvent: ContextStartedEvent: ContextStartedEvent

Oh, by the way, it took a couple of weeks toSpringForAll Community 3.0 is onlineThe community’s goal is the same as before, to build a high quality technology community that is perpendicular to Java developers! At present, there are nearly 1000 registered users, and many readers will post some posts every day, and the technical atmosphere has been initially formed.If you are learning Java or Spring, you can share your insights, problems and help others solve them here. Later, I will continue to select some of the questions I find interesting, here to continue to share with you!

This question is essentially an understanding of Spring and Spring Boot event mechanisms.

Although Spring Boot is based on Spring, rather than directly using common events defined in Spring, Spring Boot redefines a batch.

They both inherit from SpringApplicationEvent, and SpringApplicationEvent inherits from ApplicationEvent, The SpringApplicationEvent is parallel to the ContextStartedEvent.

So, there should be no ContextStartedEvent in Spring Boot.

Spring Boot 2.0 new features (2) : New event ApplicationStartedEvent

ApplicationStartingEvent ApplicationEnvironmentPreparedEvent ApplicationPreparedEvent ApplicationStartedEvent < = new events ApplicationReadyEvent ApplicationFailedEventCopy the code

That’s all for today’s sharing! If you have any difficulty in learning? You can join our super high quality Spring technology exchange group, participate in the exchange and discussion, better learning and progress! More Spring Boot tutorials can be clicked direct! , welcome to collect and forward support!

The above is my understanding, if there is a wrong place, also welcome to comment area pointed out, study together to advance together!

Welcome to pay attention to my public number: program ape DD. Learn cutting-edge industry news, share in-depth technical know-how, and obtain high-quality learning resources at the first time