ApplicationReadyEvent
The event Spring Boot publishes once the whole application has started and is ready to serve requests.
In more detail
Listening for it is a clearer signal than bean ordering for work that needs the complete context, such as warming a cache. Code that runs on it can assume every bean exists and the web server is listening.
Related terms
- bean lifecycle — The stages a Spring bean passes through: construction, dependency injection, initialization, use, and destruction when the context closes.
- application context — The running Spring container: the object that holds every bean for an application and manages their creation and shutdown.
Taught in
- The Spring Bean Lifecycle — Modern Java: Virtual Threads & High-Throughput Services