java后端发送http请求使用RestTemplate

时间:2021-06-15 21:11:02
RestTemplate restTemplate = new RestTemplate();
ResponseEntity<SsoUrlPrm>result = restTemplate.getForEntity(requestPathUrl,SsoUrlPrm.class); 

 

 

  1. RestTemplate restTemplate = new RestTemplate();
  2.  
    ResponseEntity<SsoUrlPrm>result = restTemplate.getForEntity(requestPathUrl,SsoUrlPrm.class);