perf[litemall-all]: 启用gzip压缩传输

This commit is contained in:
Junling Bu
2020-04-26 23:43:32 +08:00
parent b3c51ff79d
commit e763daa27f
2 changed files with 26 additions and 0 deletions

22
doc/performance.md Normal file
View File

@@ -0,0 +1,22 @@
# 性能
## 1 小程序性能
## 2 VUE性能
## 3 Spring Boot性能
### 3.1 gzip压缩
在litemall-all模块中配置gzip压缩
```
server:
compression:
enabled: true
min-response-size: 2048
mime-types: application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
```
## 4 数据库性能
## 5 其他

View File

@@ -6,6 +6,10 @@ spring:
server:
port: 8080
compression:
enabled: true
min-response-size: 2048
mime-types: application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
logging:
config: classpath:logback-spring.xml