Tagged articles
2 articles
Page 1 of 1
Programmer DD
Programmer DD
Feb 25, 2022 · Backend Development

Do ApplicationStartedEvent and ContextStartedEvent Differ in Spring Boot?

This article explains the differences between ApplicationStartedEvent and ContextStartedEvent in Spring Boot, clarifies their inheritance hierarchy, and lists the key events provided by Spring Boot, highlighting that ContextStartedEvent is not used in the framework.

ApplicationStartedEventEventscontextstartevent
0 likes · 3 min read
Do ApplicationStartedEvent and ContextStartedEvent Differ in Spring Boot?
Programmer DD
Programmer DD
Mar 9, 2018 · Backend Development

When Does Spring Boot 2.0’s ApplicationStartedEvent Actually Fire?

This article explains the new ApplicationStartedEvent introduced in Spring Boot 2.0, shows the full event order, demonstrates how to write listeners for ApplicationPreparedEvent, ApplicationStartedEvent and ApplicationReadyEvent, and clarifies the difference between ApplicationStartedEvent and ApplicationReadyEvent using a CommandLineRunner example.

ApplicationStartedEventCommandLineRunnerEventListener
0 likes · 9 min read
When Does Spring Boot 2.0’s ApplicationStartedEvent Actually Fire?