Programmatic Bean Registration with Spring Framework 5.0 - Josh Long
summary
Shows how Spring Framework 5 lets code register beans at runtime using SpringApplicationBuilder and an ApplicationContext initializer, replacing boilerplate configuration with registerBean with Supplier and BeanDefinitionCustomizer hooks. Demonstrates Java and Kotlin beans DSL, uses Spring Boot, WebFlux routes, Reactive MongoDB and Lombok, and builds a tiny app (about 40 lines of code) that registers a CustomerService, an ApplicationRunner and a RouterFunction and runs — curl returns "hello world".
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:38About Josh
- 3:40Overview
- 6:30Building the Application
- 7:35Annotations
- 9:20Bean Provider
- 10:30Application
- 11:45Customer Service
- 13:15Configuration
- 15:20Rewriting Application Builder
- 17:15Rewriting Application Runner
- 20:05Running the Application
- 21:50Copy and Paste
- 22:50Application Runner
- 24:20Testing
related talks
01h 01mFunctional Spring Boot
49mMagical Beans and Mystery
45mJava: Where did you get this bean?
01h 13mSpring: Your next Java microframework
48mWhere Did You Get That Bean?
35mSpring: your next Java micro-framework
01h 22mModern Java Component Design with Spring Framework 4.2
37mWhere did you get this bean?
