java后端发送http请求使用RestTemplate

时间:2022-10-29 21:08:05
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);