Browse Source

'返回数据压缩'

master
daixiantong 4 years ago
parent
commit
d021c0bcd5
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/main/resources/application.yml

+ 5
- 1
src/main/resources/application.yml View File

@@ -15,7 +15,11 @@ mybatis-plus:
map-underscore-to-camel-case: true
use-generated-keys: true
server:
# 数据压缩
compression:
# 开启压缩
enabled: true
# 数据格式
mime-types: application/json
min-response-size: 1024
# 超过200KB进行压缩
min-response-size: 200

Loading…
Cancel
Save