S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to expose a method's return value as the response body?

  • (A) @RestMapping
  • (B) @JsonBody
  • (C) @ResponseBody
  • (D) @Result
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@ResponseBody binds a method's return value to the HTTP response body.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.