springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/HttpClientUtil.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/HttpClientUtil.java
@@ -254,14 +254,14 @@ */ public static String get(String url, Map<String, String> headerMap) { // 请求地址,以及参数设置 HttpGet get = new HttpGet(url); HttpPost post = new HttpPost(url); if (headerMap != null) { for (Map.Entry<String, String> entry : headerMap.entrySet()) { get.setHeader(entry.getKey(), entry.getValue()); post.setHeader(entry.getKey(), entry.getValue()); } } // 执行请求,获取相应 return getRespString(get); return getRespString(post); } /**