Start here. This is the direct spoken answer to practice first.
Overview
Global advice centralizes HTTP rendering; it does not replace meaningful exceptions or domain outcome design.
A @RestControllerAdvice can declare @ExceptionHandler methods that apply across REST controllers. Handlers map known exceptions to a status and a stable response, and Spring can render ProblemDetail or ErrorResponse using the RFC 9457 media type. I include a machine-readable type or code, a safe title and detail, the instance path where useful, and a correlation identifier. Validation errors add structured field or parameter entries.