导出excel超简略版本
/** * 超简略导出Excel */ public static void exportExcel() throws Exception{ //导出的文件 OutputStream outputStream = new FileOutputStream(new File("1.xlsx")); // 声明一个工作薄 XSSFWorkbook workBook = new XSSFWorkbook(); //创建第一页sheet XSSFSheet sheet = workBook.createSheet("第一页sheet"); //进行导出 关闭流 workBook.write(outputStream); workBook.close(); outputStream.close(); }