瀏覽代碼

优化控制上传文件大小

Signed-off-by: java110 <928255095@qq.com>
java110 5 月之前
父節點
當前提交
21aef5ef19

+ 4 - 0
springboot/src/main/resources/application-debug.yml

@@ -6,6 +6,10 @@ server:
 
 
 spring:
+  servlet:
+    multipart:
+      maxFileSize: 50MB
+      maxRequestSize: 50MB
   profiles:
     active: share
   http:

+ 4 - 0
springboot/src/main/resources/application-dev.yml

@@ -6,6 +6,10 @@ server:
 
 
 spring:
+  servlet:
+    multipart:
+      maxFileSize: 50MB
+      maxRequestSize: 50MB
   profiles:
     active: share
   http:

+ 4 - 0
springboot/src/main/resources/application-zihao.yml

@@ -6,6 +6,10 @@ server:
 
 
 spring:
+  servlet:
+    multipart:
+      maxFileSize: 50MB
+      maxRequestSize: 50MB
   profiles:
     active: share
   http: