java用HttpURLConnection发起HTTPS请求并跳过SSL证书

HttpsURLConnection.setDefaultHostnameVerifier
                    (
                            (urlHostName, session) -> true
                    );

  

posted @ 2023-06-06 13:44  浅笑19  阅读(392)  评论(0编辑  收藏  举报