diff --git a/doc/performance.md b/doc/performance.md new file mode 100644 index 00000000..f45a723d --- /dev/null +++ b/doc/performance.md @@ -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 其他 \ No newline at end of file diff --git a/litemall-all/src/main/resources/application.yml b/litemall-all/src/main/resources/application.yml index fad6875d..2880a24c 100644 --- a/litemall-all/src/main/resources/application.yml +++ b/litemall-all/src/main/resources/application.yml @@ -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