fengchang hai 1 ano
pai
achega
89fe9b2ff6

+ 1 - 0
hichina-main-back/src/main/java/com/hichina/main/back/hichinamainback/utils/HttpUtils.java

@@ -45,6 +45,7 @@ public class HttpUtils {
             HttpGet request = new HttpGet(url);
 
 //            LOG.info("Executing request " + request + " to " + target + " via SOCKS proxy " + socksaddr);
+            System.setProperty("https.protocols", "TLSv1.2");
             CloseableHttpResponse response = httpclient.execute(request, context);
             try {
                 return new String(EntityUtils.toByteArray(response.getEntity()), "UTF-8");