Spring Web
Spring MVC and REST APIs: controllers, validation, errors, DTOs and HTTP semantics.
A worked REST controller with validation and error mapping already appears in Hexagonal Architecture with Spring Boot.
Articles
- Spring MVC architectureHow a request flows through Spring MVC: the front-controller DispatcherServlet, HandlerMapping and HandlerAdapter, argument resolvers and validation, HttpMessageConverters (Jackson 3), return value handling, interceptors vs servlet filters, exception resolvers, the threading model with virtual threads, and the components you can customise.
- REST design & error handlingDesigning REST APIs with Spring: resources and URIs, HTTP methods, idempotency and status codes, validation, DTOs, pagination, versioning (Spring Framework 7 API versioning), idempotency keys, HATEOAS and OpenAPI docs, plus global error handling with @RestControllerAdvice and RFC 9457 Problem Details, and HTTP interface clients.
- WebFlux & ReactorReactive programming in Spring: the Reactive Streams contract and backpressure, Mono and Flux, assembly vs subscription, essential operators (map, flatMap, concatMap, zip, retryWhen, timeout), schedulers and never blocking, error handling, WebFlux annotated and functional endpoints on Netty, WebClient, R2DBC, testing with StepVerifier, and when to choose WebFlux vs MVC with virtual threads.
Planned topics
These topics are on the roadmap and not written yet. They appear here so you can see the full scope of the section.
- DTOs and mapping
- Serialization with Jackson