S

Satya • 3.38K Points
Extraordinary

Q. Which annotation handles database exceptions translation?

  • (A) @Component
  • (B) @Repository
  • (C) @Controller
  • (D) @Bean
  • Correct Answer - Option(B)
  • Views: 2
  • Filed under category Springboot
  • Hashtags:

Explanation by: Satya
@Repository enables persistence exception translation into Spring exceptions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.