reset 回滚错误修改

This commit is contained in:
疯狂的狮子Li 2024-10-28 17:44:21 +08:00
parent 6731b7947b
commit 761586cc3c

View File

@ -83,10 +83,10 @@ public class OssClient {
StaticCredentialsProvider credentialsProvider = StaticCredentialsProvider.create(
AwsBasicCredentials.create(properties.getAccessKey(), properties.getSecretKey()));
//使用对象存储服务时要求明确配置访问样式路径样式或虚拟托管样式需要启用路径样式访问
boolean isStyle = true;
// MinIO 使用 HTTPS 限制使用域名访问站点填域名需要启用路径样式访问
boolean isStyle = !StringUtils.containsAny(properties.getEndpoint(), OssConstant.CLOUD_SERVICE);
//创建AWS基于 CRT S3 客户端
// 创建AWS基于 CRT S3 客户端
this.client = S3AsyncClient.crtBuilder()
.credentialsProvider(credentialsProvider)
.endpointOverride(URI.create(getEndpoint()))