url.openStream报错javax.net.ssl.SSLHandshakeException解决(忽略ssl证书方式)
访问带https请求忽略ssl证书,避免url.openStream报错javax.net.ssl.SSLHandshakeException url = new URL(imageUrl); if("https".equalsIgnoreCase(url.getProtocol())){ SslUtils.ignoreSsl(); } //不添加工具类,下面一行会开始报错(不明白的可以邮件讨论下qlinchao@126.com) DataInputStream dataInputStream = new DataInputStream(url.openStream());
用户评论