使用Spring Boot对数据进行压缩,可以在application.xml配置以下信息: server: compression: enabled: true min-response-size: 2048 #默认是2048 小于2048的需要在这里手动更改