Skip to content

Glossary: Spring Boot Basics

@ExceptionHandler

Marks a method that catches one exception type and returns the error response. It lives in a @RestControllerAdvice class.

Where the book teaches it

Related terms

@RestControllerAdviceProblemDetail