/**
* 导出excel
* @param title 导出表的标题
* @param rowsName 导出表的列名
* @param dataList 需要导出的数据
* @param fileName 生成excel文件的文件名
* @param response
*/
public void exportExcel(String title, String[] rowsName, List<Object[]> dataList, String fileName, HttpServletResponse response) throws Exception{
OutputStream output = response.getOutputStream();
response.reset();
response.setHeader(“Content-disposition”,
“attachment; filename=”+fileName);
response.setContentType(“application/msexcel”);
this.export(title,rowsName,dataList,fileName,output);
this.close(output);
}
导出Excel左下角弹框