如何使用POI对Excel表进行导入和导出
导出时自由选择路径的代码如下:
1、后台输出excel文件代码:
OutputStream output = utputStream()
t()
eader("Content-disposition", "attachment filename=" + path)
ontentType("Content-Type:application/-excel ")
e(output)
e()
2、前端代码:
("getExcelList","_blank")