byte[] data;
String fileName = URLEncoder.encode("文件名.xlsx", "UTF-8");
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8");
response.setHeader("Content-Disposition", "attachment;filename*=UTF-8''" + fileName);
response.setHeader("Content-Length", String.valueOf(data.length));
response.getOutputStream().write(data);
response.flushBuffer();