我正在尝试通过使用以下代码存储json字符串值s3:
String fileData="{\"test\":1,\"name\":123}";
Regions clientRegion = Regions.US_EAST_1;
AmazonS3 s3 =AmazonS3ClientBuilder.standard()
.withRegion(clientRegion)
.withCredentials(new ProfileCredentialsProvider())
.build();
s3.putObject(bucketName, "test123",fileData);
我收到以下类似的错误消息:
Exception in thread "main" java.lang.IllegalArgumentException: profile file cannot be null
我该如何解决?