From 770769ead57d13822545d25afd28b1a387c31946 Mon Sep 17 00:00:00 2001 From: gaoxiongzaq Date: Thu, 20 Jul 2023 09:06:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=94=A8=20GZIP=E5=8E=8B=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/main/config/application.properties | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/src/main/config/application.properties b/server/src/main/config/application.properties index b3e4721a..ee8a9fad 100644 --- a/server/src/main/config/application.properties +++ b/server/src/main/config/application.properties @@ -2,7 +2,13 @@ server.port = ${KK_SERVER_PORT:8012} server.servlet.context-path= ${KK_CONTEXT_PATH:/} server.servlet.encoding.charset = utf-8 -#文件上传限制前端 +#启用GZIP压缩功能 +server.compression.enable= true +#允许压缩的响应缓冲区最小字节数,默认2048 +server.compression.min-response-size = 2048 +#压缩格式 +server.compression.mime-types=application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain,font/woff,application/font-woff,font/eot,image/svg+xml,image/x-icon +# 文件上传限制前端 spring.servlet.multipart.max-file-size=500MB #文件上传限制 spring.servlet.multipart.max-request-size=500MB