您可以按以下方式使用postForEntity方法…
ResponseEntity<String> response = restTemplate.postForEntity(url+restParm, null, String.class);HttpStatus status = response.getStatusCode();String restCall = response.getBody();

您可以按以下方式使用postForEntity方法…
ResponseEntity<String> response = restTemplate.postForEntity(url+restParm, null, String.class);HttpStatus status = response.getStatusCode();String restCall = response.getBody();