1、post方法
public static String post(String url, String body){
String result = null;
CloseableHttpClient client = null;
CloseableHttpResponse response = null;
try {
client = HttpClients.createDefault();
HttpPost httpPost = new HttpPost(url);
StringEntity stringEntity = new StringEntity(body, Charset.forName("UTF-8"));
httpPost.setEntity(stringEntity);
response = client.execute(httpPost);
HttpEntity entity