S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to declare a Spring MVC controller?

  • (A) @WebController
  • (B) @Controller
  • (C) @RestAPI
  • (D) @Page
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey

@Controller is used to define a Spring MVC controller.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.