SpringBoot后端开启gzip压缩

tech2026-10-11  4

在springboot配置文件中添加这两行即可

# 开启压缩 server.compression.enabled=true server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain
最新回复(0)