In a Spring Boot application, the HTTP request body can be deserialized using the _____ annotation.

  • @PathVariable
  • @RequestBody
  • @RequestParam
  • @ResponseBody
In Spring Boot, the @RequestBody annotation is used to deserialize the HTTP request body into a Java object. This is particularly useful when dealing with POST or PUT requests where data is sent in the request body. The other annotations are used for different purposes, such as specifying response bodies, request parameters, or path variables.
Add your answer
Loading...

Leave a comment

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