简单通信例子
//json格式的请求报文
JSONObject params = new JSONObject()
.fluentPut("msgID","TA0040001000220191009015734015734")
.fluentPut("useID","A00400010002");
//发送请求消息
String reqJson = JSON.toJSONString(params);
//httpClient通信
HttpClient httpClient = HttpClientBuilder.create().build();
HttpPost httpPost = new HttpPost(payurl);//payurl 通信的网址
StringEntity entityParams = new StringEntity(reqJson, "UTF-8");//reqJson 请求json格式的报文
httpPost.setEntity(entityParams);
httpPost.setHeader("Content-Type", "application/json");//报文内容数据格式,此为json
httpPost.setHeader("Authorization",