The @RequestBody annotation is used to bind the value of the HTTP request body to a(n) _____ in a controller method.

  • ResponseEntity
  • HttpRequest
  • ModelAttribute
  • Method parameter
In Spring Boot, the @RequestBody annotation is used to bind the value of the HTTP request body to a method parameter in a controller method. This allows you to access and process the data sent in the request body. The other options represent different types or concepts and are not used for binding request bodies to controller methods.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *