From f92beb521a7d8ee411e96046d02c69a7bbdf0f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=98=95?= Date: Fri, 2 Feb 2024 14:45:44 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E5=BC=80=E5=90=AFSpringBootHTTP?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1gzip=E5=8E=8B=E7=BC=A9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application-local.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/application-local.yml b/config/application-local.yml index 534ec14..4b1a90b 100644 --- a/config/application-local.yml +++ b/config/application-local.yml @@ -2,6 +2,13 @@ server : port : 9276 servlet: context-path: /cmhi + compression: + # 开启响应压缩 + enabled : true + mime-types : + - application/json # RESTful API JSON + # 进行压缩的最小体积 + min-response-size: 1KB # Crypto Configure jasypt :