To customize the response body of a Spring Boot controller method, the @_____ annotation can be used.

  • @Response
  • @ResponseBody
  • @ResponseController
  • @ResponseEntity
To customize the response body of a Spring Boot controller method, the @ResponseBody annotation is used. This annotation tells Spring that the return value of the method should be bound to the web response body, allowing you to customize the content that is sent back to the client. It's a key annotation for building RESTful web services with Spring Boot.
Add your answer
Loading...

Leave a comment

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