codefarm
HomeRoadmapsGuidesBlogsMentorshipEbooks
Back to Spring Boot
🌐
Phase 2

Web & REST APIs

Build production-quality HTTP APIs: the DispatcherServlet request lifecycle, request binding and ResponseEntity, Bean Validation, RFC 9457 error responses, Jackson and content negotiation, and outbound calls with RestClient.

1

Spring MVC: The Request Lifecycle Behind @RestController

Follow one request through DispatcherServlet, HandlerMapping and the message converters, then use that model to bind parameters and pick status codes.

spring-bootspring-mvcDispatcherServlet
2

Bean Validation: Where @Valid Fires, and Where It Doesn't

The real difference between @Valid and @Validated, the two exceptions they throw, writing a ConstraintValidator, and why validation spans several layers.

spring-bootvalidationbean-validation
3

Error Responses: @ControllerAdvice and RFC 9457 ProblemDetail

Map domain exceptions to status codes in one place, and return a standard problem format instead of a per-project error shape nobody documented.

spring-bootexception-handlingControllerAdvice
4

Jackson and Content Negotiation: Controlling the JSON You Emit

How Spring picks a message converter, the Jackson annotations that shape your JSON, custom serialisers, and why polymorphic deserialisation needs care.

spring-bootjacksonjson
5

Outbound HTTP: RestClient, WebClient and Timeouts That Matter

Which client to use in 2026, why the default timeout of none will take your service down, and the retry and error-handling patterns worth standardising.

spring-bootRestClientWebClient
codefarm

Learn backend engineering with clear roadmaps, practical tools, and interactive quizzes. From zero to production-ready.

Learn

  • Roadmaps
  • DSA Practice
  • DSA Problems
  • System Design Practice
  • Guides
  • Blogs
  • Videos
  • Ebooks

Labs

  • Simulators
  • Quizzes
  • Whiteboard
  • JWT Decoder
  • UUID Generator
  • Toolbox

Simulators

  • Uptime SLA
  • Rate Limiters
  • Kafka Message Flow
  • Kafka Consumer Lag
  • Kafka Rebalance

Community

  • Cohorts
  • Testimonials
  • About
  • Contact

Legal

  • Terms & Conditions
  • Privacy Policy
  • Refund & Cancellation