minio上传文件 大小限制改为200

This commit is contained in:
coolleave
2025-05-04 16:56:40 +08:00
parent 46f4e044bf
commit 11bc3787d7
2 changed files with 3 additions and 3 deletions

View File

@@ -78,9 +78,9 @@ spring:
servlet: servlet:
multipart: multipart:
# 单个文件大小 # 单个文件大小
max-file-size: 50MB max-file-size: 200MB
# 设置总上传的文件大小 # 设置总上传的文件大小
max-request-size: 100MB max-request-size: 200MB
# 服务模块 # 服务模块
devtools: devtools:
restart: restart:

View File

@@ -48,7 +48,7 @@ public class OssClient {
this.properties = ossProperties; this.properties = ossProperties;
try { try {
AwsClientBuilder.EndpointConfiguration endpointConfig = AwsClientBuilder.EndpointConfiguration endpointConfig =
new AwsClientBuilder.EndpointConfiguration(properties.getEndpoint(), properties.getRegion()); new AwsClientBuilder.EndpointConfiguration(properties.getEndpoint().trim(), properties.getRegion());
AWSCredentials credentials = new BasicAWSCredentials(properties.getAccessKey(), properties.getSecretKey()); AWSCredentials credentials = new BasicAWSCredentials(properties.getAccessKey(), properties.getSecretKey());
AWSCredentialsProvider credentialsProvider = new AWSStaticCredentialsProvider(credentials); AWSCredentialsProvider credentialsProvider = new AWSStaticCredentialsProvider(credentials);