"Content-Type","application/x-www-form-urlencoded;charset=utf-8"
/**
* 请求服务 "Content-Type","application/x-www-form-urlencoded;charset=utf-8"
*
* @return
*/
public static String httpPost(String url,Map<String,String> param,String appkey){
HttpPost httpPost = new HttpPost(url);
httpPost.setHeader("appkey",appkey);
ArrayList<BasicNameValuePair> list = new ArrayList<>();
param.forEach((key, value) -> list.add(new BasicNameValuePair(key, value)));
CloseableHttpClient httpClient = HttpClients.createDefault();
try {
if (Objects.nonNull(param) && param.size() >0) {
httpPost.setEntity(new UrlEncodedFormEntity(list, "UTF-8"));
}
/*InputStream content = httpPost.getEntity().getContent();
InputStreamReader inputStreamReader = new InputStreamReader(content, "UTF-8");
BufferedRead