We wrote a DSL in Spring and stepped on the rake
summary
The talk examines building a concise internal DSL to configure large numbers of similar Spring beans, comparing different implementation approaches and their trade-offs. It digs into Spring Framework internals to identify obstacles that arise when simplifying configuration and discusses practical workarounds and patterns for middle+ Java developers.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:49About us and the talk
- 3:15Talk goals and tasks
- 6:47Problem demonstration
- 10:39Bean Factory Post Processor intro
- 15:51First attempt and mistake
- 20:27Early initialization problem analysis
- 27:13Spring bean lifecycle
- 31:48Starter approach comparison
- 35:41Alternative solutions search
- 37:27Functional bean registration style
- 40:00ApplicationContextInitializer solution
- 41:27Kotlin Bean DSL solution
- 43:14Summary and recommendations








