Spring Boot 4 REST API implementation patterns. Use when creating REST controllers, request validation, exception handlers with ProblemDetail (RFC 9457), API versioning, content negotiation, or WebFlux reactive endpoints. Covers @RestController patterns, Bean Validation 3.1, global error handling, and Jackson 3 configuration.
/plugin marketplace add joaquimscosta/arkhe-claude-plugins/plugin install spring-boot@arkhe-claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
EXAMPLES.mdTROUBLESHOOTING.mdreferences/controllers.mdreferences/error-handling.mdreferences/webflux.mdREST API implementation patterns for Spring Boot 4 with Spring MVC and WebFlux.
| Choose | When |
|---|---|
| Spring MVC | JPA/JDBC backend, simpler debugging, team knows imperative style |
| Spring WebFlux | High concurrency (10k+ connections), streaming, reactive DB (R2DBC) |
With Virtual Threads (Java 21+), MVC handles high concurrency without WebFlux complexity.
@RestController with @RequestMapping base path@GetMapping, @PostMapping, etc.@Valid on request body, custom validators@RestControllerAdvice with ProblemDetailSee EXAMPLES.md for complete working examples including:
tools.jackson package (not com.fasterxml.jackson)spring.mvc.problemdetails.enabled=trueversion attribute in mapping annotations@MockBean in tests| Anti-Pattern | Fix |
|---|---|
| Business logic in controllers | Delegate to application services |
| Returning entities directly | Convert to DTOs |
| Generic error messages | Use typed ProblemDetail with error URIs |
| Missing validation | Add @Valid on @RequestBody |
| Blocking calls in WebFlux | Use reactive operators only |
| Catching exceptions silently | Let propagate to @RestControllerAdvice |
@Valid on all request bodies@MockitoBean not @MockBean — Spring Boot 4 changeCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.