Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
e763daa2
Commit
e763daa2
authored
Apr 26, 2020
by
Junling Bu
Browse files
perf[litemall-all]: 启用gzip压缩传输
parent
b3c51ff7
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/performance.md
0 → 100644
View file @
e763daa2
# 性能
## 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 其他
\ No newline at end of file
litemall-all/src/main/resources/application.yml
View file @
e763daa2
...
...
@@ -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
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment