解决webMagic0.7.3 出现javax.net.ssl.SSLException: Received fatal alert: protocol_version的问题

主要是 目前 webmagic 最新版是0.7.3版本,在爬取只支持 TLS1.2 https 站点会报错,修改HttpClientGenerator中的buildSSLConnectionSocketFactory方法,
return new SSLConnectionSocketFactory(createIgnoreVerifySSL(), new String[]{"SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"},
                    null,
                    new DefaultHostnameVerifier())

你可能感兴趣的:(解决webMagic0.7.3 出现javax.net.ssl.SSLException: Received fatal alert: protocol_version的问题)