mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
4.3.0
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user