springboot 开启请求响应gzip压缩 yml配置文件添加配置。 server: compression: enabled: true mime-types: application/json,application/xml,text/xml,text/plain