OCT 1. 开启SpringBootHTTP服务gzip压缩功能

This commit is contained in:
黄昕 2024-02-02 14:45:44 +08:00
parent 9de73f2ec5
commit f92beb521a
1 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,13 @@ server :
port : 9276 port : 9276
servlet: servlet:
context-path: /cmhi context-path: /cmhi
compression:
# 开启响应压缩
enabled : true
mime-types :
- application/json # RESTful API JSON
# 进行压缩的最小体积
min-response-size: 1KB
# Crypto Configure # Crypto Configure
jasypt : jasypt :