S

Satya • 3.38K Points
Extraordinary

Q. Which annotation handles exceptions inside a controller?

  • (A) @ExceptionHandler
  • (B) @Autowired
  • (C) @Bean
  • (D) @Qualifier
  • Correct Answer - Option(A)
  • Views: 1
  • Filed under category Spring MVC
  • Hashtags:

Explanation by: Satya
@ExceptionHandler defines a method to handle specific exceptions within a controller.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.