报了这么一个错误
javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
方法1:网上一大把,测试不能用,谷歌了一下,发现少配置了一个环境变量。
System.setProperty("jdk.tls.useExtendedMasterSecret", "false");//设置环境变量
方法2:/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre/lib/security/java.security
在 java.security 文件中 添加属性
# jdk 调用出现 Remote host terminated the handshake jdk.tls.useExtendedMasterSecret=false
暑期编程PK赛 得CSDN机械键盘等精美礼品!



