我想创建一个AmazonSNSClient,我使用以下代码:AmazonSNSClient snsClient = (AmazonSNSClient) AmazonSNSClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(new PropertiesCredentials(is))).build();但是我得到这个错误:线程“主”中的异常java.lang.UnsupportedOperationException:使用构建器创建时,客户端是不可变的。在com.amazonaws.AmazonWebServiceClient.setRegion(AmazonWebServiceClient.java:422)上com.amazonaws.AmazonWebServiceClient.checkMutability(AmazonWebServiceClient.java:937)
添加回答
举报
0/150
提交
取消