在AWS java版本2.10.4中,控件挂起于S3Client的初始化
运行该功能后,控件将挂起S3Client的初始化。日志文件卡在下面的行上:在AWS java版本2.10.4中,控件挂起于S3Client的初始化,java,amazon-web-services,aws-java-sdk,Java,Amazon Web Services,Aws Java Sdk,运行该功能后,控件将挂起S3Client的初始化。日志文件卡在下面的行上: S3Client s3Client = S3Client.builder().region(Region.EU_WEST_1).build(); 此外,这并没有给出任何例外。这是因为apache httpclient和httpcore版本问题。当我把它们更新到 下面 现在工作正常。请在问题中包含您的代码和任何堆栈跟踪/输出。这将帮助我们帮助你。 <dependency> <gr
S3Client s3Client = S3Client.builder().region(Region.EU_WEST_1).build();
此外,这并没有给出任何例外。这是因为apache httpclient和httpcore版本问题。当我把它们更新到 下面
现在工作正常。请在问题中包含您的代码和任何堆栈跟踪/输出。这将帮助我们帮助你。
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.9</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.11</version>
</dependency>