Breaking the Magician's Code Diving deeper into Spring Boot internals
summary
Rebuilds a Spring Boot web app by hand: uses SpringApplication.run but not @SpringBootApplication, adds TomcatServletWebServerFactory, registers a DispatcherServlet and @EnableWebMvc, then moves configs into a composed magic application meta-annotation. Replaces hard imports with an import selector reading spring.factories, demonstrates conditional-on-class by adding Undertow and showing the two-factory clash, adds an EnvironmentPostProcessor to load magic.properties (port 9090), and binds a ServerProperties bean via an ImportBeanDefinitionRegistrar — everything runs after those changes.
AI-written summary · about
chapters (12)
- 0:00Introduction to Spring Boot
- 2:16Starting from scratch
- 4:41Setting up the web server
- 8:58Adding MVC and dispatching
- 12:42Component scanning
- 15:15Structuring configuration
- 18:38Meta-annotations
- 22:13Import selectors
- 25:50Spring factories
- 28:18Conditional configuration
- 33:46Externalized properties
- 42:31Recap and debugging
related talks
52mSpring Boot the Ripper – Part I
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
49mDas Boot: Diving into Debugging Spring Boot Applications
47mDemystifying Spring Boot Magic
27mThe Inner Secrets of Spring
49mMagical Beans and Mystery
01h 34mBoot yourself, Spring is coming
