启用 GZIP压缩

pull/165/head
gaoxiongzaq 2023-07-20 09:06:50 +08:00
parent 8d49abb797
commit 770769ead5
1 changed files with 7 additions and 1 deletions

View File

@ -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