以前我都是导入到JDK中,操作起来非常费劲,每个人都需要部署,累死了! //证书加载String certUrl = this.getClass().getClassLoader().getResource("/").toString()+"/cert";certUrl = certUrl.substring(6); System.s
//证书加载 String certUrl = this.getClass().getClassLoader().getResource("/").toString()+"/cert"; certUrl = certUrl.substring(6); System.setProperty("javax.net.ssl.trustStore",certUrl);