minio上传文件 大小限制改为200
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user