simonjenga/CompanyRestService

@RestController in favour of @Controller

Closed this issue · 0 comments

The annotation org.springframework.web.bind.annotation.RestController is a convenience annotation that is itself annotated with @Controller and @ResponseBody.

Types that carry this annotation are treated as controllers where @RequestMapping methods assume @ResponseBody semantics by default.

Our Restful controller class CompanyController should be updated to make use of this convenience annotation.