title: Spring 3.2 @ResponseBody not working with a Model return value
body: <p>The following mapping was working with Spring 3.1, but is not working with Spring 3.2.
  I get a 404 error with an explanation that the table.jsp file is missing. Instead, the "model" should be serialized to json.</p>
  
  <pre><code>    @RequestMapping(value = {"/table"}, method = RequestMethod.GET, produces="application/json")
      public @ResponseBody Model table(Model model, @RequestParam(defaultValue = "1") Integer pg) {
          fillListModel(model, pg);
          return model;
      }
  </code></pre>
  
  <p>Is there a way to fix this without any impact to the existing code?</p>
  
  <p>The following code works fine:</p>
  
  <pre><code>    @RequestMapping(value = {"/table"}, method = RequestMethod.GET, produces="application/json")
      public @ResponseBody Model table(Model model, @RequestParam(defaultValue = "1") Integer pg) {
          return new User();
      }
  </code></pre>
  
  <p>So it looks like Spring cannot recognize that the model is returned with a purpose to be turned into json instead to be rendered in a view.</p>