Question: what is difference between controller and rest controller in spring?
Answer: 1. The @Controller is a common annotation that is used to mark a class as Spring MVC Controller while @RestController is a special controller used in RESTFul web services and the equivalent of @Controller + @ResponseBody. ... Spring boot really makes it easy to develop REST APIs with spring.