留言与评论(共有 0 条评论) |
发布时间:2020-04-15 16:50:20
把要发送的json作为字符串传入body即可
public static String sendHttpPost(String url, String body) throws Exception {
CloseableHttpClient httpClient = HttpClients.createDefault();
HttpPost httpPost = new HttpPost(url);
httpPost.addHeader("Content-Type
留言与评论(共有 0 条评论) |
全站搜索