Spring Boot the Ripper – Part II
summary
Builds a tiny Spring Boot starter that sends a “Raven” only when a property exists: defines a @ConfigurationProperties class (using Lombok), adds spring-boot-configuration-processor to generate additional-spring-configuration-metadata.json for IDE completion, and wires the sender bean with @ConditionalOnProperty so it’s only created when raven.destination is set (demo: Raven not sent until property present, then sent). Adds a composite condition annotation, an ApplicationContextInitializer to fast-fail when no active profile, and an EnvironmentPostProcessor that auto-selects a winter profile by temperature. Packaging details: Spring Boot Maven plugin creates an executable fat jar with a jar launcher and libs.
AI-written summary · about
chapters (10)
- 0:00Starter project basics
- 2:02Properties and configuration
- 5:57Conditional beans
- 9:12Advanced conditional logic
- 15:46Composite conditions
- 19:28Profiles and beans
- 24:13Fast fail and startup
- 30:26Environment post-processing
- 38:30Lifecycle and events
- 47:29Building and launching
related talks
01h 34mBoot yourself, Spring is coming
45mCustomize your Spring Boot experience by writing your own Spring Boot starter
46mSpring Boot under the hood
49mMagical Beans and Mystery
47mSpring Boot Starter - How And Why?
45mBreaking the Magician's Code Diving deeper into Spring Boot internals
01h 13mSpring: Your next Java microframework
52mBootiful Spring Boot 4
