Spring Boot 3 Articles
5 articles about Spring Boot 3. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Standardize Error Responses with Problem Details (RFC 9457) in Spring Boot 3.x
Learn how to unify error responses using Problem Details (RFC 9457), now supported out of the box in Spring Boot 3.x. This guide covers the spring.mvc.problemdetails.enabled setting, how to use the ProblemDetail class and ErrorResponse, integrating @ControllerAdvice with ResponseEntityExceptionHandler, migration steps from Spring Boot 2.x, and applying Problem Details to Spring Security and validation errors, all with code examples.
-
Introducing Distributed Tracing with Micrometer Tracing and Zipkin in Spring Boot 3.2+
A step-by-step guide to introducing distributed tracing with Micrometer Tracing and Zipkin in Spring Boot 3.2 and later. Covers the migration path after Spring Cloud Sleuth was discontinued, trace ID propagation between services, and how to verify traces in the Zipkin UI.
-
Spring Boot 2.x to 3.x Migration Guide - Java 17 Required with Checklist
Explains the 2.x→3.x migration steps with practical code examples in response to Spring Boot 2.7 end-of-life (EOL) and the Java 17 requirement. Organizes javax→jakarta replacement, SecurityFilterChain migration, and spring.factories deprecation handling with a checklist, providing the shortest route to understanding the causes and solutions for compilation/startup errors.
-
How to Implement a Circuit Breaker with Resilience4j in Spring Boot - A Guide for Spring Boot 3.x
Learn how to implement a circuit breaker in Spring Boot 3.x using Resilience4j, the successor to Hystrix. This guide covers @CircuitBreaker, @Retry, @RateLimiter, Bulkhead, and TimeLimiter usage, fallback design, parameter tuning in application.yml, and checking state via Actuator, all with practical code examples.
-
Spring Boot Virtual Threads (Java 21): Setup, Performance, and Pitfalls
Enable virtual threads in Spring Boot 3.2+ with one setting. Covers performance benchmarks vs platform threads, ThreadLocal behavior changes, pinning issues, and @Async integration.