Spring Boot's boot: diving into the startup sequence
summary
A detailed walkthrough of Spring Boot startup from running java -jar to the "Started {}" log, showing which classes and mechanisms execute and when. It explains bootstrap context (the 2.4 replacement for the old parent-child trick), SpringFactoriesLoader discovery of auto-configurations, how BeanDefinitions and BeanPostProcessors are registered and run during ApplicationContext refresh, the role of deferred logging, and how a refresh event triggers reconfiguration; demonstrations show the sequence initializing and handing control to application code.
AI-written summary · about
chapters (15)
- 0:00Spring Boot introduction
- 3:35Spring Boot context
- 6:45Service discovery mechanism
- 7:48Spring Boot startup events
- 10:38Environment management
- 14:30Environment post-processors
- 16:39Deferred logs in Spring Boot
- 18:25Context preparation
- 21:55Context refresh phase
- 25:27Auto-configuration in Spring Boot
- 29:01Properties configurations
- 31:10Runner execution
- 32:14Spring Cloud Commons
- 35:45Environment refresh
- 38:14Conclusion & Q&A
related talks
43mInside Spring: The Architecture Behind the Framework
49mDas Boot: Diving into Debugging Spring Boot Applications
01h 34mBoot yourself, Spring is coming
01h 38mBoot yourself, Spring is coming
47mDemystifying Spring Boot Magic
48mWhere Did You Get That Bean?
01h 31mIt's a Kind of Magic: Under the Covers of Spring Boot
01h 46mIt's a kind of magic: under the covers of Spring Boot
