src/main/java/com/hx/util/ExcelUtil.java
@@ -116,7 +116,7 @@ */ public static File createExcel(String[] headList, String[] fieldList, List<Map<String, Object>> dataList) throws Exception { File file = File.createTempFile("temp", ".xls"); File file = File.createTempFile("temp", ".xlsx"); try{ // 创建新的Excel 工作簿 HSSFWorkbook workbook = new HSSFWorkbook();