SpringBoot设置gzip压缩选项--提高数据传输速度 application.yml配置 application.yml配置 server: compression: enabled: true mime-types : text/html,text/xml,text/plain,text/css,application/javascript 将数据压缩成上述的文本格式, 压缩后数据传输速度大大增加, 提高接口速度