Loading tutorials
@RestController and run it with Maven or Gradle. You should also know that an unchecked exception thrown in a controller method is not caught by the method itself.6 min read/error response from the earlier chapter. Here you will follow an exception from the controller to the bytes sent to the client. K6 min read/error handling and custom exceptions. It covers the two lightest ways to turn an exception into a status code. They need no handler class, and5 min readOrderNotFoundException (from the chapter on custom exceptions). You should also know how Spring Boot's default /error response looks. Here you will map exceptions to responses with methods inside5 min read@ExceptionHandler method is. You should know basic HTTP status codes. The code uses Spring Boot 3 (Spring Framework 6) and the jakarta.* packages.5 min read@RestControllerAdvice class, and that you know the earlier chapters' OrderNotFoundException and ApiExceptionHandler. It covers the shape of the error body those handlers return and how to shape it deliberately.5 min read@RestControllerAdvice is, and you have seen ProblemDetail from the previous chapters. It covers how Bean Validation failures reach your code, how to turn them into a field-level error list, and the mistakes that mo5 min read@RestControllerAdvice pattern from the previous chapters, and you have SLF4J on the classpath (Spring Boot includes it with Logback by default). The goal is a logging policy for exceptions: each failure is logged once, 6 min read@RestControllerAdvice, ProblemDetail and the default /error behavior. You should be comfortable with Spring Boot 3, ApiExceptionHandler as built earlier, and basic logging with SLF4J.5 min readOrderNotFoundException, OrderController, `CustomerCon5 min read@ExceptionHandler, @RestControllerAdvice and ProblemDetail. It also assumes you know the basics of Project Reactor (Mono, Flux, operators). It covers what changes when the same error contract runs on Spring WebFlux, the reactive we4 min read