In Spring Boot, to create a RESTful web service, you would typically use the _____ annotation on a controller class.

  • @Controller
  • @RequestMapping
  • @RequestMapping and @RestController
  • @RestController
In Spring Boot, to create a RESTful web service, you typically use the @RestController annotation on a controller class. This annotation combines the functionality of both the @Controller and @ResponseBody annotations, making it convenient for creating RESTful endpoints that return data directly in the response body, without the need for a view.
Add your answer
Loading...

Leave a comment

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