QuestionQ18

VerifiedSecure Coding Practices for Error Handling

For global exception handling, a developer should use the _________ annotation together with the @ExceptionHandler method annotation on any class.

Explanation

@ControllerAdvice designates a class whose @ExceptionHandler methods are shared across controllers, enabling centralized global exception handling.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!