title: spring boot REST response gzip compression not working
body: <p>I'm trying to add gzip compression in spring boot REST project . I already 
  set  the following property in  <code>application.properties</code> </p>
  
  <pre><code>server.compression.enabled=true
  server.compression.min-response-size=2048
  server.compression.mime-types=text/html,text/css,application/javascript,application/json
  </code></pre>
  
  <p>But it does not work. Response Headers in postman show </p>
  
  <pre><code>Content-Type: application/json
  Transfer-Encoding: chunked
  Content-Encoding: gzip
  Vary: Accept-Encoding
  </code></pre>
  
  <p>The data is still not compressed.</p>