Functional Spring Boot
summary
Shows how to replace annotation-driven Spring Boot wiring with Kotlin-based programmatic configuration using ApplicationContextInitializer and Spring.factories, leveraging Kotlin features like inline reified generics and extension functions. Demonstrates the Spring Core beans DSL and router DSL, converting controllers to functional routes, running unit tests in milliseconds (demo test 786 ms) and shipping this at GrubHub across ~200 microservices. Presents Spring Fu history, the Spring Funk library that integrates with Spring Boot Test, and notes upcoming Spring Boot 7 bean registrar support.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker intro
- 2:10Spring Boot history and problems
- 7:56Decomposing Spring Boot magic
- 10:21Programmatic configuration concept
- 16:21Beans DSL in Kotlin
- 20:17Router DSL for web endpoints
- 23:27Spring Boot 7 improvements
- 25:37Spring Funk project introduction
- 29:27Live demo setup
- 31:49Demo converting to functional approach
- 41:47Refactoring with Kotlin features
- 43:09Integrating Spring Funk library
- 48:53Final functional Spring Boot app
- 51:24Kotlin advantages and future
- 53:10Resources and closing
related talks
52mSpring into Kotlin: How to Make the Magic even more Magical
43mKotlin for Fun for Spring Fans
26mProgrammatic Bean Registration with Spring Framework 5.0 - Josh Long
50mBootiful Kotlin
49mMagical Beans and Mystery
47mSpring Boot Revisited with KoFu and JaFu
01h 13mSpring: Your next Java microframework
43mInside Spring: The Architecture Behind the Framework
