fix 修复 minio 适配 https 导致的问题

This commit is contained in:
疯狂的狮子li 2022-02-18 14:08:21 +08:00
parent 6fa53ebe31
commit 0e81a7c342

View File

@ -39,7 +39,7 @@ public class MinioOssStrategy extends AbstractOssStrategy {
} else { } else {
builder.endpoint(properties.getEndpoint()); builder.endpoint(properties.getEndpoint());
} }
minioClient = builder.build(); minioClient = builder.credentials(properties.getAccessKey(), properties.getSecretKey()).build();
createBucket(); createBucket();
} catch (Exception e) { } catch (Exception e) {
throw new OssException("Minio存储配置错误! 请检查系统配置:[" + e.getMessage() + "]"); throw new OssException("Minio存储配置错误! 请检查系统配置:[" + e.getMessage() + "]");