javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake错误

javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
这个错误网上很多帖子说是jdk版本问题, 我试了不管用

只需要在请求代码前面加上

System.setProperty("https.protocols", "TLSv1");

这行代码 完美解决

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章