From 5159b6c26441be7bbfa88792dc859738c30f3493 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Tue, 23 Apr 2024 14:28:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B9=B3=E5=9D=87=E5=88=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hyp-admin/src/main/resources/application.yml | 4 ++-- .../main/java/com/hyp/common/utils/file/FileUploadUtils.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hyp-admin/src/main/resources/application.yml b/hyp-admin/src/main/resources/application.yml index e15430b..b5f078e 100644 --- a/hyp-admin/src/main/resources/application.yml +++ b/hyp-admin/src/main/resources/application.yml @@ -57,9 +57,9 @@ spring: servlet: multipart: # 单个文件大小 - max-file-size: 10MB + max-file-size: 100MB # 设置总上传的文件大小 - max-request-size: 20MB + max-request-size: 200MB # 服务模块 devtools: restart: diff --git a/hyp-common/src/main/java/com/hyp/common/utils/file/FileUploadUtils.java b/hyp-common/src/main/java/com/hyp/common/utils/file/FileUploadUtils.java index b87dc72..c01de1a 100644 --- a/hyp-common/src/main/java/com/hyp/common/utils/file/FileUploadUtils.java +++ b/hyp-common/src/main/java/com/hyp/common/utils/file/FileUploadUtils.java @@ -25,7 +25,7 @@ public class FileUploadUtils /** * 默认大小 50M */ - public static final long DEFAULT_MAX_SIZE = 50 * 1024 * 1024; + public static final long DEFAULT_MAX_SIZE = 200 * 1024 * 1024; /** * 默认的文件名最大长度 100