Closed zqjimlove closed 9 years ago
try { fis = new FileInputStream(file); hwb = new HSSFWorkbook(fis); } catch (Exception e) { logger.error("create excel error", e); return Maps.newHashMap(); }
建议改成
Workbook hwb = null; try { fis = new FileInputStream(file); //兼容2003和2007 hwb = WorkbookFactory.create(fis); } catch (Exception e) { logger.error("create excel error", e); return Maps.newHashMap(); }
Ok,下一版本修复
建议改成