S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to handle exceptions globally in Spring Boot?

  • (A) @GlobalException
  • (B) @ExceptionMapper
  • (C) @ControllerAdvice
  • (D) @ErrorHandler
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@ControllerAdvice is used to define global exception handlers across the application.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.