调用Https开头的webservice接口

Https开头的webservice接口

 

工具类中添加
    static{
 
        System.setProperty("javax.net.ssl.trustStore","/路径/_.xxxx.com.cn.jks");
        System.setProperty("javax.net.ssl.trustStorePassword","password(密码)");
    }

可以正常调用https开头的接口

posted @ 2021-03-29 16:08  向上丶  阅读(709)  评论(0编辑  收藏  举报