spring中用RestTemplate调用接口
import org.springframework.web.client.RestTemplate;
import org.springframework.http.ResponseEntity;
@Autowired
RestTemplate restTemplate;
ResponseEntity<T> responseEntity = restTemplate.getForEntity(url,T.class,orgCode);
--POST请求就用postForEntity方法
return responseEntity.getBody();
-----------专注于实时数仓,大数据存储、计算