HSSFWORKbook导出Excel问题

我想意见导出多个Excel,filename = new String(filename.getBytes("gbk"), "ISO-8859-1") + ".xls";// 处理中文文件名
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition", "attachment;filename=" + filename);
// response.setContentLength(workbook.getBytes().length);
log.info("buildExcelDocument in size:" + workbook.getBytes().length);
ouputStream = response.getOutputStream();
workbook.write(ouputStream);
ouputStream.flush();
ouputStream.close();
workbook.close();
多次调用这个为什么只导出一个Excel文件啊

查看全部
qq_30087381
qq_30087381
2016/10/13 06:05
  • 点赞
  • 收藏
  • 回答
    私信

1个回复