使用spring 中的RestTemplate 发送请求 实现httpclient
RestTemplate restTemplate=new RestTemplate();
String s="http://route.showapi.com/";
ResponseEntity<String> responseEntity = restTemplate.getForEntity(s, String.class);
...
原创
2018-07-18 17:00:36 ·
472 阅读 ·
0 评论