New in Spring Framework 5.0: Functional Web Framework
summary
Spring 5.0 adds a second, functional web model that avoids annotation magic by using Java 8 lambdas, reactive types and small composable APIs. It exposes RouterFunction/HandlerFunction with immutable ServerRequest/ServerResponse, uses Mono/Flux (Reactor) for async bodies, supports nesting and predicate composition, and intentionally uses no reflection. The demo builds a tiny routing framework, runs standalone or in Spring Boot, serves CRUD endpoints with 404 handling, and the code is on GitHub.
AI-written summary · about
chapters (12)
- 0:00Introduction to Spring 5.0
- 1:16Problems with annotations
- 4:55Goals of functional web framework
- 16:20Demo setup and basics
- 22:04Creating handler functions
- 31:18Exposing repository with handlers
- 43:10Introducing router functions
- 56:10Combining router functions
- 1:00:04Refactoring to handler class
- 1:03:26Using Spring's framework types
- 1:07:31Running the application
- 1:11:57Q&A and closing








