title: Spring MVC, Serving RESTFul request (json) and JSP (content negotiation)
body: <p>I'm trying to create a Spring MVC 4 web project (Maven project) in order to handle REST requests. 
  The system should answer with a web page in case the HTTP accept is text/html
  and in json in case it is application/json (and possibly other formats like XML in case it is application/xml).</p>
  
  <p>I've set up a controller and the JSP (I've also used the @RestController). The problem is that I cannot make it working togheter. If the system is correctly answer with a JSP, then the json service is not working and vice versa.
  Do I have to set an handler for each representation, and how?</p>
  
  <p>Thank you in advance.</p>