Declarative Clients in Spring
summary
Spring builds a first‑class declarative HTTP client in Framework 6 as an alternative to third‑party integrations: Spring Cloud OpenFeign remains popular (around 800 GitHub stars and large Maven download counts in 2021) but lacks non‑blocking I/O and caused RequestMapping CVE issues, so the new client introduces http exchange annotations, a ServiceProxyFactory with a WebClientAdapter, and automatic support for blocking (threads blocked for sync signatures) and reactive returns (Mono/Flux). Demo runs, resolves headers/path/body, and leverages Spring load‑balancing and observability.
AI-written summary · about
chapters (10)
- 0:00Introduction to the speaker
- 1:08Declarative clients overview
- 3:50Spring Cloud OpenFeign
- 8:06Limitations of current tools
- 11:00Alternative approaches
- 14:03The case for a new solution
- 18:33New HTTP interface design
- 23:58Features and implementation
- 27:29Demo and architecture
- 32:35Q&A and closing
related talks
48mDeclarative Clients in Spring
07mInterview with Spring team members Stéphane Nicoll & Brian Clozel
01h 07mAPI Toolbox with Spring
55mSpring Framework 5: Feature Highlights & Hidden Gems
57mReactive Spring
58mReactive Spring
01h 13mNew in Spring Framework 5.0: Functional Web Framework
40mWhat’s New in Spring
