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