S

Satya • 3.38K Points
Extraordinary

Q. Which annotation indicates a controller that returns views (HTML)?

  • (A) @RestController
  • (B) @Controller
  • (C) @Service
  • (D) @Component
  • Correct Answer - Option(B)
  • Views: 3
  • Filed under category Springboot
  • Hashtags:

Explanation by: Satya
@Controller is used for MVC controllers returning HTML pages.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.