我们正在开发 Spring Boot 应用程序以连接 AWS S3。
final AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
AmazonS3 s3client = AmazonS3ClientBuilder.standard()
.withRegion(Regions.US_WEST_2)
.withCredentials(new AWSStaticCredentialsProvider(credentials))
.build();
在创建 AwsCredentials 对象行本身时,我们面临以下问题
java.lang.SecurityException: class "com.amazonaws.auth.BasicAWSCredentials"'s signer information does not match signer information of other classes in the same package
我们不明白这是什么问题?
所以任何人都知道问题是什么以及如何解决这个问题?