java.lang.NoSuchFieldError: INSTANCE at com.amazonaws.http.conn.SdkConnectionKeepAliveStrategy.ge

在测试aws的s3本地测试的时候会遇到这样的错误:
java.lang.NoSuchFieldError: INSTANCE
   at com.amazonaws.http.conn.SdkConnectionKeepAliveStrategy.getKeepAliveDuration(SdkConnectionKeepAliveStrategy.java:48)
此错误主要是httpclient包与aws内置的jar有冲突导致的,在pom.xml中添加对应的jar即可


    org.apache.httpcomponents
    httpcore
    4.4


    org.apache.httpcomponents
    httpclient
    4.4

你可能感兴趣的:(AWS)