当我把这个代码中发现:org.apache.http.conn.ssl.SSLConnectionSocketFactory不在HttpClientBuilder.build()
HttpClientBuilder clientBuilder = HttpClientBuilder.create();
LaxRedirectStrategy laxStrategy = new LaxRedirectStrategy();
clientBuilder = clientBuilder.setRedirectStrategy(laxStrategy);
httpClient = clientBuilder.build(); // FAILS HERE
我得到java.lang.NoSuchFieldError的:INSTANCE
看起来像它找不到类org.apache.http.conn.ssl.SSLConnectionSocketFactory,但是该类在我的类路径中的jar中找到。我怎样才能找到罪魁祸首?
谢谢! Mike