📅  最后修改于: 2022-03-11 14:52:27.945000             🧑  作者: Mango
val cred = ...
val endpoint = "https://google.com" //whatever url you use
val client = AmazonS3ClientBuilder
.standard()
.withCredentials(cred)
.withPathStyleAccessEnabled(true)
.withEndpointConfiguration(
new EndpointConfiguration(
endpoint,
AwsHostNameUtils.parseRegion(endpoint, AmazonS3Client.S3_SERVICE_NAME)
)
)
.build()