S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to define a RESTful controller?

  • (A) @RestController
  • (B) @WebService
  • (C) @ServiceController
  • (D) @ApiController
  • Correct Answer - Option(A)
  • Views: 5
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@RestController is a combination of @Controller and @ResponseBody used for RESTful services.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.