S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to automatically register an exception handler across all controllers?

  • (A) @RestControllerAdvice
  • (B) @GlobalHandler
  • (C) @RestAdvice
  • (D) @ControllerConfig
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@RestControllerAdvice is used to define global exception handlers for REST controllers.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.