定义:访问第三方RESTful接口的网络请求框架
使用方法:
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 
 | 
 
 @RestController
 public ClassRestController(){
 @GetMapping("/testRest")
 public String testRest(){
 RestTemplate restTemplate = new RestTemplate();
 return restTemplate.getForObject("http..",String.class);
 }
 
 }
 
 
 User user = restTemplate.getForObject("www....",User.class);
 
 | 
 
    
    
    
        
  
    Welcome to my other publishing channels