将文件上传到aws s3时无法初始化类com.amazonaws.partitions.PartitionsLoader

时间:2017-09-12 13:03:43

标签: amazon-web-services amazon-s3 aws-sdk

将文件上传到aws s3时,获取无法初始化类com.amazonaws.partitions.PartitionsLoader ,我使用的是aws-java-sdk 1.11.192,而jackson版本是2.9.1。如何解决这个问题?

<dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.9.1</version>
    </dependency>
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-core</artifactId>
        <version>2.9.1</version>
    </dependency>
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-annotations</artifactId>
        <version>2.9.1</version>
    </dependency>

    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk</artifactId>
        <version>1.11.192</version>
    </dependency>
    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk-core</artifactId>
        <version>1.11.192</version>
    </dependency>
    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk-s3</artifactId>
        <version>1.11.192</version>
    </dependency>

0 个答案:

没有答案