String url = "www.csdn.net"
HttpHeaders headers = new HttpHeaders();
headers.put("Content-Type", Collections.singletonList("application/json;charset=UTF-8"));
headers.add("Authorization", "abc");
HttpEntity<String> requestEntity = new HttpEntity<>(null, headers);
ResponseEntity<String> resEntity = restTemplate.exchange(url, HttpMethod.GET, requestEntity, String.class);