注册 X
提交 注:点击提交后系统会发送邮件到邮箱验证!(仅支持中国大陆邮箱)
我已阅读并同意 服务条款
首页 > IT技术笔记 > 查看笔记

jsoup访问页面: PKIX path building failed

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)之前添加方法忽略证书信任问题

        
        
      

        
        
      


 打赏        分享



评论

邮箱: 昵称: