Web services using Spring Boot2X and running Tomcat or Jetty, the support gzip compression can
Modify the configuration file application.properties
server.compression.enabled=true server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain server.compression.min-response-size=1024
Description:
Whether server.compression.enabled compression turned on, the default is false
server.compression.mime-types specified MIME type you want to compress
server.compression.min-response-size performing compression threshold, default 2048bytes