{"id":24111452,"url":"https://github.com/nndi-oss/spring-zerocell","last_synced_at":"2025-05-13T10:49:40.643Z","repository":{"id":42472099,"uuid":"284354825","full_name":"nndi-oss/spring-zerocell","owner":"nndi-oss","description":"Zerocell integration to extract data quickly, efficiently and automagically from Excel files in your Spring applications.","archived":false,"fork":false,"pushed_at":"2024-05-27T00:20:36.000Z","size":102,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T06:35:25.114Z","etag":null,"topics":["excel","java"],"latest_commit_sha":null,"homepage":"https://nndi.cloud/oss/spring-zerocell/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nndi-oss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-01T23:19:46.000Z","updated_at":"2024-06-12T05:55:14.000Z","dependencies_parsed_at":"2022-09-01T01:20:43.034Z","dependency_job_id":null,"html_url":"https://github.com/nndi-oss/spring-zerocell","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nndi-oss%2Fspring-zerocell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nndi-oss%2Fspring-zerocell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nndi-oss%2Fspring-zerocell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nndi-oss%2Fspring-zerocell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nndi-oss","download_url":"https://codeload.github.com/nndi-oss/spring-zerocell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253928430,"owners_count":21985793,"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":["excel","java"],"created_at":"2025-01-11T02:34:21.434Z","updated_at":"2025-05-13T10:49:40.593Z","avatar_url":"https://github.com/nndi-oss.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Zerocell for Spring\n===\n\n[zerocell](https://github.com/creditdatamw/zerocell) integration for Spring Boot. It enables you to upload and extract data quickly, efficiently and _automagically_ from Excel files in your Spring application controllers. It's so magical that you won't see or write any code to read and map data from an Excel Sheet to a POJO.\n\n\u003e NOTE: This should not be considered production-ready.\n\u003e We are working towards a stable release towards early February 2022.\n\u003e YMMV\n\n## Quick Start example\n\nThe code below is a complete Spring Boot application that allows users to \n  * upload an Excel file, \n  * process the Excel file by reading each row and mapping it to a POJO\n  * return the extracted Excel data as JSON data\n  \n_All without writing any code to actually deal with Excel!_\n\n```java\npublic class PersonRow { \n    @Column(index=0, name= \"ID\")\n    private String ID;\n    @Column(index=1, name= \"Name\")\n    private String name;\n    @Column(index=2, name=\"Age\")\n    private int age;\n\n    // .. getters and setters ... \n}\n\n@RestController\n@Import(SpringZerocellSupport.class)\npublic class ExampleController {\n    @PostMapping(value = \"/upload\", produces = MediaType.APPLICATION_JSON_VALUE)\n    public List\u003cPersonRow\u003e extractUsers(@ZerocellRequestBody List\u003cPersonRow\u003e peopleFromExcel) {\n        return peopleFromExcel; // Return the loaded data to the user\n    }\n}\n\n@SpringBootApplication\npublic class ExampleApplication {\n    public static void main(String... args) {\n        SpringApplication.run(ExampleApplication.class, args);\n    }\n}\n```\n\nA simple form to interact with the endpoint would looks something like this;\n\n```html\n\u003c!doctype html\u003e\n\u003chtml\u003e\n\u003cbody\u003e\n    \u003ch1\u003eSpring Zerocell Example\u003c/h1\u003e\n\n    \u003cform method=\"post\" action=\"/upload\" enctype=\"multipart/form-data\"\u003e\n        Upload an excel with the following columns 'ID', 'Name', 'Age'\n        \u003cinput type=\"file\" name=\"file\" \u003e\n        \u003cbutton\u003eUpload\u003c/button\u003e\n    \u003c/form\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nA cURL request to the endpoint would look something like this:\n\n```sh\n$ curl -XPOST -F \"file=@customers.xlsx\" http://localhost:8080/upload\n```\n\n## Installation / Usage\n\nNot yet on any repositories, so clone it and install it locally:\n\n```sh\n$ git clone https://github.com/nndi-oss/spring-zerocell.git\n$ cd spring-zerocell\n$ mvn clean install\n``` \n\nAdd to your pom and enjoy :) :\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecloud.nndi.oss\u003c/groupId\u003e\n    \u003cartifactId\u003espring-zerocell\u003c/artifactId\u003e\n    \u003cversion\u003e0.3.0-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n---\n\nCopyright (c) 2022, NNDI","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnndi-oss%2Fspring-zerocell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnndi-oss%2Fspring-zerocell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnndi-oss%2Fspring-zerocell/lists"}