关于Q1,请尝试使用以下语法构建客户端:
AmazonS3 amazonS3 = AmazonS3Client.builder() .withRegion("us-east-1") .withCredentials(new AWSStaticCredentialsProvider(creds)) .build();
关于Q1,请尝试使用以下语法构建客户端:
AmazonS3 amazonS3 = AmazonS3Client.builder() .withRegion("us-east-1") .withCredentials(new AWSStaticCredentialsProvider(creds)) .build();