Commit fdd933e598724a18496a60b38578c138c8bfcad2
1 parent
74e7a89e
启用gzip
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/resources/application.properties
| ... | ... | @@ -11,3 +11,5 @@ multipart.maxFileSize = -1 |
| 11 | 11 | # Total request size for a multipart/form-data |
| 12 | 12 | multipart.maxRequestSize = -1 |
| 13 | 13 | |
| 14 | +server.compression.enabled=true | |
| 15 | +server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,text/javascript,text/css,application/javascript | ... | ... |