hutool tool export excel

1. Add hutool dependent and dependent poi

<dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>4.1.19</version> </dependency>

<dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>${poi.version}</version> </dependency>

poi.version than version 3.17

Table 2. generated by tools

 

ExcelUtil.getWriter (true); - parameter is true, can generate .xlsx file generated when open will not fill .xlsx

After the call interface is generated form

There are other games are played, specifically refer to the document:  http://hutool.mydoc.io/

 

Guess you like

Origin blog.csdn.net/YYpawn/article/details/86510106