Spring MVC 4.2: New and Noteworthy
summary
Spring Framework 4.2 adds concrete features for web apps: HTTP streaming with ResponseBodyEmitter and SseEmitter plus StreamingResponseBody for direct OutputStream writes, built-in Server-Sent Events formatting, and a working curl/browser demo; fine‑grained CORS via @CrossOrigin and MVC-level config (including preflight handling quirks with Spring Security); updated HTTP caching primitives via CacheControl and ResponseEntity helpers; byte‑range support for static resources; RestTemplate gains OkHttp support; WebSocket/SockJS/STOMP gets heartbeats, selectors and multi‑server user destinations, and a Java STOMP client.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:11HTTP Streaming & WebSockets
- 10:54Server-Sent Events & API
- 16:47Web MVC and SSE Demo
- 31:26CORS Support
- 47:37HTTP Caching
- 54:14Composable Request Mappings
- 55:49Jackson Integration
- 1:00:13Script Templating
- 1:05:01HTTP Byte Ranges & RestTemplate
- 1:10:42WebSocket Enhancements
- 1:18:43Q&A and Reactive Future
related talks
01h 20mSpring 4 Web Applications
01h 26mWhat's new in Spring MVC 3.2
51mSpring Boot 2.0 Web Applications
01h 30mDeep dive into Spring WebSockets
46mServlet 4 0: A New Twist on an Old Favorite
51mOpenAPI and Spring-Boot 4 - What's New?
01h 27mResource Handling in Spring MVC 4.1
01h 11mServlet or Reactive Stacks: The Choice is Yours. Oh No... The Choice is Mine! - Rossen Stoyanchev
