![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
httpclient
9随遇而安
这个作者很懒,什么都没留下…
展开
-
java调用https接口报错
调用第三方https接口,在本地测试没问题,将项目提交到测试环境怎么都掉不通,报如下错误:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilder原创 2016-10-31 17:03:49 · 3881 阅读 · 3 评论 -
httpclient post请求返回301解决方案
public static String post(String url, Map<String,Object> paramMap,Map<String,String> headerMap) { CloseableHttpClient httpClient = HttpClients.createDefault(); try { HttpPost原创 2017-10-12 12:54:16 · 21957 阅读 · 2 评论