HttpHeaders headers = new HttpHeaders();
HashMap<String, Object> signMap1 = new HashMap<String, Object>();
HashMap<String, Object> signMap = new HashMap<String, Object>();
HashMap<String, Object> signMap0 = new HashMap<String, Object>();
signMap.put("appid", "Test");
signMap.put("appkey", "Test");
signMap.put("scenario", "SC01");
signMap.put("interfaceno", "NB00002");
signMap.put("operator", "Test");
signMap.put("timeStamp", "20190123133755275");
signMap1.put("data", signMap);
System.out.println(JsonUtils.transferToJson(signMap1));
headers.add("sign", SignUtil.getSign(signMap1, SignUtil.secretKeyOfWxh));
HttpEntity<String> requestEntity = new HttpEntity<String>(JsonUtils.transferToJsonNoFormat(signMap1), headers);
RestTemplate restTemplate = new RestTemplate();
String post = restTemplate.postForObject("http://10.8.201.47:8080/services/api/authentication/certification", requestEntity, String.class);
System.out.println(requestEntity);
System.out.println(post);