S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to create a REST endpoint in Spring Boot?

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

Explanation by: Shyam Dubey
@RestController combines @Controller and @ResponseBody for RESTful web services.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.