使用 RestTemplate 发送 post请求(json参数)
使用json作为参数版本//调用post请求 public static JSONObject callPostAPI(String url, JSONObject header, JSONObject body) { RestTemplate client = new RestTemplate(); HttpHeaders headers = new HttpHeaders(); headers.setContentTy
原创
2020-06-02 16:56:50 ·
5965 阅读 ·
0 评论