Browse Source

!165 启用 GZIP压缩

Merge pull request !165 from 高雄/gzip
pull/166/MERGE
陈精华 1 year ago committed by Gitee
parent
commit
3571f2b502
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
  1. 8
      server/src/main/config/application.properties

8
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

Loading…
Cancel
Save