{"id":20310326,"url":"https://github.com/hs-web/reactor-excel","last_synced_at":"2025-09-22T21:31:08.163Z","repository":{"id":39863352,"uuid":"247943907","full_name":"hs-web/reactor-excel","owner":"hs-web","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-19T06:23:57.000Z","size":178,"stargazers_count":8,"open_issues_count":0,"forks_count":22,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-14T17:47:54.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hs-web.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-17T10:43:23.000Z","updated_at":"2024-09-21T03:48:05.000Z","dependencies_parsed_at":"2024-02-23T07:27:27.999Z","dependency_job_id":"c920f045-4a8f-4769-9e42-b2abc62e065a","html_url":"https://github.com/hs-web/reactor-excel","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hs-web%2Freactor-excel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hs-web%2Freactor-excel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hs-web%2Freactor-excel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hs-web%2Freactor-excel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hs-web","download_url":"https://codeload.github.com/hs-web/reactor-excel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233891640,"owners_count":18746477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T17:31:13.520Z","updated_at":"2025-09-22T21:31:07.765Z","avatar_url":"https://github.com/hs-web.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 基于Reactor的excel,csv导入导出\n\n[![Build Status](https://travis-ci.com/hs-web/reactor-excel.svg?branch=master)](https://travis-ci.com/hs-web/reactor-excel)\n[![codecov](https://codecov.io/gh/hs-web/reactor-excel/branch/master/graph/badge.svg)](https://codecov.io/gh/hs-web/reactor-excel)\n\n```java\nReactorExcel\n        .writeFor(\"csv\")\n        .justWrite()\n        .sheet(spec-\u003e{\n            spec.header(\"id\",\"ID\")\n                .header(\"name\",\"name\")\n                .rows(datas)\n        })\n        .write(new FileOutputStream(\"./target/test.csv\"))\n        .as(StepVerifier::create)\n        .expectComplete()\n        .verify();\n\n```\n\n```java\n\nReactorExcel\n        .readToMap(inputStream,\"csv\")\n        .as(StepVerifier::create)\n        .subscribe(map-\u003eSystem.out.println(map));\n\n```\n\n多sheet写出\n\n```java\n ReactorExcel\n        .xlsxWriter()\n        .sheet(sheet-\u003e{\n             sheet.name(\"S1\")\n                  .header(\"id\",\"ID\")\n                  .header(\"name\",\"姓名\")\n                  .rows(dataFlux);\n        })\n        .sheet(sheet-\u003e{\n             sheet.cell(0,0,\"Name\")\n                  .cell(1,0,\"Age\")\n                  .cell(0,1,\"Test\")\n                  .cell(1,1,1)\n                  .option(sheet_-\u003e{//自定义sheet操作\n                     sheet_.addMergedRegion(CellRangeAddress.valueOf(\"A3:B3\"));\n                     sheet_.addMergedRegion(CellRangeAddress.valueOf(\"C1:C3\"));\n                    });\n        })\n        .write(new FileOutputStream(\"./target/test.xlsx\"))\n        .subscribe();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhs-web%2Freactor-excel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhs-web%2Freactor-excel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhs-web%2Freactor-excel/lists"}