public class RestTemplateUtil extends Object
| 构造器和说明 |
|---|
RestTemplateUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.springframework.http.ResponseEntity<String> |
getRestTemplateGet(org.springframework.web.client.RestTemplate restTemplate,
String url,
String json)
restTemplate 发送get请求
|
static org.springframework.http.ResponseEntity<String> |
getRestTemplatePost(org.springframework.web.client.RestTemplate restTemplate,
String url,
String json)
restTemplate 发送post请求
|
static Map<String,Object> |
parseResponseEntity(org.springframework.http.ResponseEntity<String> entity) |
public static org.springframework.http.ResponseEntity<String> getRestTemplatePost(org.springframework.web.client.RestTemplate restTemplate, String url, String json)
public static org.springframework.http.ResponseEntity<String> getRestTemplateGet(org.springframework.web.client.RestTemplate restTemplate, String url, String json)
Copyright © 2021 tan. All rights reserved.