title: Difference between spring @Controller and @RestController annotation
body: <p>Difference between spring <code>@Controller</code> and <code>@RestController</code> annotation.</p>
  
  <p>Can <code>@Controller</code> annotation be used for both Web MVC and REST applications?<br>
  If yes, how can we differentiate if it is Web MVC or REST application.</p>