ResponseEntity<byte[]> response = restTemplate.exchange(url, HttpMethod.GET,httpEntity, byte[].class);
byte[] file = response.getBody();
try {
response.setHeader("Content-disposition", "attachment;filename=text" + fileName + ".xlsx");
response.getOutputStream().write(file);
} catch (IOException e) {
logger.error("下载失败",e);
}