S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What is the purpose of @RequestBody annotation?

  • (A) To inject a service
  • (B) To bind the request body to a method parameter
  • (C) To return an HTTP header
  • (D) To validate a request
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@RequestBody binds the entire HTTP request body to a method parameter.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.