RestTem
RestTemplate restTemplate = new RestTemplate();
//1 调用地址
String url="http://服务ip:8080/xxx";
//2 设置请求头
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
//3 设置请求参数
HttpEntity<BzDate> httpEntity = new HttpEntity<>(参数对象, headers);
ResponseEntity<String> stringResponseEntity = restTemplate.postForEntity(url, httpEntity, String.class);