如何使用POI對Excel表進行導入和導出
來源:魅力女性吧 5.18K
導出時自由選擇路徑的代碼如下:
1、後台輸出Excel文件代碼:
OutputStream output = utputStream()
t()
eader("Content-disposition", "attachment filename=" + path)
ontentType("Content-Type:application/-excel ")
e(output)
e()
2、前端代碼:
("getExcelList","_blank")