title: How to decode Gzip compressed request body in Spring MVC
body: <p>I have a client that sends data with </p>
  
  <pre><code>CONTENT-ENCODING deflate
  </code></pre>
  
  <p>I have code like this</p>
  
  <pre><code>@RequestMapping(value = "/connect", method = RequestMethod.POST)
  @ResponseBody
  public Map onConnect(@RequestBody String body){}
  </code></pre>
  
  <p>Currently 'body' prints out the garbled, compressed data.
  Is there any way to make Spring MVC automatically uncompress it?</p>