From 008c0f830f73dd8d9abbc0c5869be7d3d75bb8bb Mon Sep 17 00:00:00 2001 From: tanghc Date: Wed, 3 Mar 2021 09:51:57 +0800 Subject: [PATCH] 4.3.0 --- .../config/SopGatewayEnvironmentPostProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/config/SopGatewayEnvironmentPostProcessor.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/config/SopGatewayEnvironmentPostProcessor.java index d92ec8e1..233d843f 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/config/SopGatewayEnvironmentPostProcessor.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/config/SopGatewayEnvironmentPostProcessor.java @@ -42,7 +42,7 @@ public class SopGatewayEnvironmentPostProcessor implements EnvironmentPostProces private void initMemSize(Properties properties) { String maxFileSizeKey = "spring.servlet.multipart.max-file-size"; String maxMemSizeKey = "spring.codec.max-in-memory-size"; - String defaultSize = "10M"; + String defaultSize = "10MB"; String maxUploadSize = properties.getProperty(maxFileSizeKey, defaultSize); String maxBodySize = properties.getProperty(maxMemSizeKey, defaultSize); long size = Math.max(DataSize.parse(maxUploadSize).toBytes(), DataSize.parse(maxBodySize).toBytes());