导出EXCEL

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());

posted @ 2020-06-14 03:09  工设091  阅读(53)  评论(0编辑  收藏  举报