只需使用实例方法
setX()而不是static 方法即可
setDefaultX():
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();connection.setSSLSocketFactory(...);connection.setHostnameVerifier(...);

只需使用实例方法
setX()而不是static 方法即可
setDefaultX():
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();connection.setSSLSocketFactory(...);connection.setHostnameVerifier(...);