方式1:
bytes[] res = rest.postForObject(url, paramObject, String.class);
方式2:
String res = rest.postForObject(url, paramObject, String.class);
方式3:
ResponseEntity<Resource> entity = rest.postForEntity(url, paramObject, Resource.class)
方式1:
bytes[] res = rest.postForObject(url, paramObject, String.class);
方式2:
String res = rest.postForObject(url, paramObject, String.class);
方式3:
ResponseEntity<Resource> entity = rest.postForEntity(url, paramObject, Resource.class)