title: Spring annotation @Request mapping throws error while parsing json
body: <pre><code>@RequestMapping(method = RequestMethod.POST, consumes = "application/json", produces = "application/json")
  @ResponseBody
  public  DealerData createData( @RequestBody Data data) {
      return data;
  }
  </code></pre>
  
  <p>I am getting this exception when I pass the json into the function.</p>
  
  <pre><code>Exception: org.springframework.web.HttpMediaTypeNotAcceptableException
  </code></pre>
  
  <p>Any help would be appreciated</p>