S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which of the following is used to define a global exception handler?

  • (A) @RestControllerAdvice
  • (B) @ExceptionGlobal
  • (C) @GlobalErrorHandler
  • (D) @ExceptionCatch
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@RestControllerAdvice is used for global exception handling in REST APIs.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.