📜  aws s3 兼容 java 代码示例

📅  最后修改于: 2022-03-11 14:52:27.945000             🧑  作者: Mango

代码示例1
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()