WHAT: 将html中表单导出成excel
WHY:在工作编码中,excel的导出非常频繁,因此实现学会这个非常必要
HoW: 可以前端解决,也可以后端解决
Java后端实现excel导出
添加需要的依赖
<dependency> <groupId>com.github.whvcse</groupId> <artifactId>easy-captcha</artifactId> <version>1.6.2</version> </dependency> <dependency> <groupId>cn.afterturn</groupId> <artifactId>easypoi-base</artifactId> <version>4.4.0</version> </dependency> <dependency> <groupId>cn.afterturn</groupId> <artifactId>easypoi-web</artifactId> <version>4.4.0</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>1.1.2-beta5</version> </dependency>
>
java实现代码
`
@ApiOperation("导出Excel")
@GetMapping("/exportExcel")
public void exportExcel(HttpServletResponse response) throws IOException {
List
标签:vue,java,wb,exportExcel,excel,fix,导出,document
来源: https://www.cnblogs.com/gsyy/p/16395684.html