Skip to content

Glossary: Spring Boot Basics

@RestControllerAdvice

Marks a class whose @ExceptionHandler methods apply to every controller. It is the one place that turns exceptions into error responses.

Where the book teaches it

Related terms

@ExceptionHandlerProblemDetail