Git Product home page Git Product logo

easyexcel-spring-boot-starter's Introduction

Easyexcel Spring Boot Starter

概述

将 Controller 中使用 @ResponseExcel 注解的函数的返回值,或者类型为 ExcelFile 或者 SheetInfo 的返回值解析为 Excel 文件下载。

使用

Maven

<dependency>
    <groupId>com.gaoice</groupId>
    <artifactId>easyexcel-spring-boot-starter</artifactId>
    <version>1.0</version>
</dependency>

releases

easyexcel

easyexcel-spring-boot-starter

在项目中添加以上两个 jar 包。

配置

com.gaoice.easyexcel.enable-excel-file=true # 是否解析 ExcelFile 类型的返回值为文件下载
com.gaoice.easyexcel.enable-sheet-info=true # 是否解析 SheetInfo 类型的返回值为文件下载
com.gaoice.easyexcel.enable-response-excel=true # 是否解析带有 @ResponseExcel 注解的函数的返回值为文件下载

示例

查看 ExcelDownloadController 中的使用示例。

运行 DemoApplication 访问相应的接口查看效果。

easyexcel-spring-boot-starter's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.