- Mastering Microservices with Java
- Sourabh Sharma
- 54字
- 2021-07-02 13:03:41
Controller class
The RestaurantController class uses the @RestController annotation to build the restaurant service endpoints. We went through the details of @RestController in Chapter 2, Environment Setup. @RestController is a class-level annotation that is used for resource classes. It is a combination of the @Controller and @ResponseBody annotations. It returns the domain object.
推薦閱讀