无私溪流

文章
4
资源
0
加入时间
2年10月24天

httpClient的post的请求带参数传递

public static String httpPost(String url,Map<String,String> params){ String result = null; CloseableHttpClient httpClient = HttpClients.createDefault(); //2.声明post请求 HttpPost httpPost = new HttpPost(url); //3.设置请求