RestTemplate restTemplate = new RestTemplate();
restTemplate.delete("");
restTemplate.put("","");
restTemplate.postForEntity(",","",String.class);
restTemplate.postForLocation("","");
get方法
@Override
@Nullable
public <T> T getForObject(String url, Class<T> responseType, Map<String, ?> uriVariables) throws RestClientException
@Override
@Nullable
public <T> T getForObject(String url, Class<T> responseType, Object... uriVariables) throws RestClientException {
@Override
@Nullable
public <T> T getForObject(URI url, Class<T> responseType) throws RestClientException {
psot
@Override
@Nullable
public URI postForLocation(String url, @Nullable Object request, Object... uriVariables)
throws RestClientException {
@Override
@Nullable
public URI postForLocation(String url, @Nullable Object request, Map<String, ?> uriVariables)
throws RestClientException {
@Override
@Nullable
public URI postForLocation(URI url, @Nullable Object request) throws RestClientException {