tanyucong
    /**
     * 超简略导出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();
    }

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-05-31
  • 2021-12-31
  • 2022-12-23
  • 2022-01-31
  • 2022-12-23
  • 2021-10-05
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
相关资源
相似解决方案