String fileName=URLEncoder.encode("员工表.xlsx","UTF-8");
response.setContentType("application/octet-stream");
response.setHeader("content-disposition","attachment;filename="+fileName);
response.setHeader("filename,fileName");
workbook.write(response.getOutputStream());
原文:https://www.cnblogs.com/dengw125792/p/13123585.html