WebMagic SSLException Received fatal alert: protocol_version

修改HttpClientGenerator中的buildSSLConnectionSocketFactory方法,

return new SSLConnectionSocketFactory(createIgnoreVerifySSL(), new String[]{
     "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"},
                    null,
                    new DefaultHostnameVerifier())

自己下载源码后,修改编译打包

貌似是jdk的问题,将源码包jdk更改为1.8

原作者对该问题的回答

你可能感兴趣的:(WebMagic SSLException Received fatal alert: protocol_version)