Browse Source

配置上传文件大小

Junling Bu 5 years ago
parent
commit
1e72ae8292

+ 4 - 0
litemall-all-war/src/main/resources/application.yml

@@ -3,6 +3,10 @@ spring:
     active: db, core, admin, wx
   messages:
     encoding: UTF-8
+  servlet:
+    multipart:
+      max-file-size: 20MB
+      max-request-size: 20MB
 
 logging:
   config: classpath:logback-spring.xml

+ 4 - 0
litemall-all/src/main/resources/application.yml

@@ -3,6 +3,10 @@ spring:
     active: db, core, admin, wx
   messages:
     encoding: UTF-8
+  servlet:
+    multipart:
+      max-file-size: 20MB
+      max-request-size: 20MB
 
 server:
   port: 8080