您好我发现此方法为SSLContext context = SSLContext.getInstance("TLSv1.2");
context.init(null, null, null);
HttpsURLConnection.setDefaultSSLSocketFactory(context.getSocketFactory());
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
FileUtils.copyURLToFile(connection.getURL(), file);
我使用JDK 1.8.51我发现它没有任何jar可供下载吗?
感谢