S

Satya • 3.38K Points
Extraordinary

Q. Which annotation is used to specify the base URL at class level?

  • (A) @Component
  • (B) @RequestMapping
  • (C) @Bean
  • (D) @Configuration
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category Spring MVC
  • Hashtags:

Explanation by: Satya

@RequestMapping can be applied at class level to define a base URL for all methods in the controller.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.