Springcloud中的RestTemplate

RestTemplate restTemplate = new RestTemplate();
        restTemplate.delete("");
        restTemplate.put("","");
        restTemplate.postForEntity(",","",String.class);
        restTemplate.postForLocation("","");


get方法

@Override
	@Nullable
	public  T getForObject(String url, Class responseType, Map uriVariables) throws RestClientException 

@Override
	@Nullable
	public  T getForObject(String url, Class responseType, Object... uriVariables) throws RestClientException {
		
@Override
	@Nullable
	public  T getForObject(URI url, Class 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 uriVariables)
			throws RestClientException {
	@Override
	@Nullable
	public URI postForLocation(URI url, @Nullable Object request) throws RestClientException {

 

你可能感兴趣的:(Study,Java)