瀏覽代碼

文件上传大小配置调整

jichaobo 2 年之前
父節點
當前提交
bc6c290f3b
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      base-modules/service-file/src/main/resources/bootstrap.yml

+ 4 - 0
base-modules/service-file/src/main/resources/bootstrap.yml

@@ -7,6 +7,10 @@ spring:
   application:
   application:
     # 应用名称
     # 应用名称
     name: service-file
     name: service-file
+  servlet:
+    multipart:
+      max-file-size: 100MB
+      max-request-size: 500MB
   profiles:
   profiles:
     # 环境配置
     # 环境配置
     active: dev
     active: dev