title: @ResponseBody in return type ; 406 error for accept header
body: <p>I am using Spring MVC with </p>
  
  <pre><code>&lt;mvc:annotation-driven/&gt;
  </code></pre>
  
  <p>in my config file.</p>
  
  <p>my contoller method is </p>
  
  <pre><code>public @ResponseBody ArrayList&lt;AccountDetails&gt; create(UploadItem uploadItem)   {  
  ..............
  return list;
  }
  </code></pre>
  
  <p>Using jre1.7</p>
  
  <p>Still getting HTTP Status 406 error for accept headers..</p>