jsoup访问页面: PKIX path building failed
在用jsoup访问页面时报错 javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
这是由于安全认证的问题,网上解决办法很多, 我们只需要在Jsoup.connect(webSite)之前添加方法忽略证书信任问题