/* *
* export Excel: multiple sheet with header
*
* @ param response HttpServletResponse
* @ param list data list, each element is a BaseRowModel
* @ param fileName exported file name
* @ param sheetName import file sheet name
* @ param object mapping entity class, Excel model
*/
Public static ExcelWriterFactroy writeExcelWithSheets (HttpServletResponse response, List<? Extends BaseRowModel> The list,
The String fileName, String sheetName, BaseRowModel object) {
ExcelWriterFactroy writer=new ExcelWriterFactroy (getOutputStream (fileName, response), ExcelTypeEnum. XLSX);
Sheet Sheet=new Sheet (1, 0, object. The getClass ());
Sheet. SetSheetName (sheetName);
Writer. Write (list, sheet);
Return a writer;
}
Local method invocation is successful, can export Excel spreadsheets, uploaded to the test server under Linux system, the caller, print information, in the new ExcelWriterFactroy failure, strives for the great god,