title: How to use @ResponseBody to return a map<string, string>?
body: <pre><code>public class RestfulControllerImpl implements RestfulController {
  
    @Override
    @RequestMapping(value = "maptest", method = RequestMethod.GET)
    @ResponseBody
    public Object mapReturn() {
      HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
      map.put("name", "test1");
      map.put("sex", "male");
      map.put("address", "1324");
      map.put("old", "123");
      return map;
    }  
  }
  </code></pre>
  
  <p>I want to return a <code>map&lt;string, string&gt;</code> for the request, and it occurs </p>
  
  <blockquote>
    <p>HTTP-406 not acceptable</p>
  </blockquote>
  
  <p>How to implement the method to return a response body with a map and it shows in like a json object? </p>