EASYPOI

EaysPoi导出的时候文本格式设置为数值

场景导出的数值单元格格式是文本。客户每次都要手动转为数值,往往一个表格就是好多万数据,转换起来等半天。解决方案听说@Excel设置type=10即可POM引入easyPoi相关的:<!-- easyExcel start --><dependency> <groupId>com.alib

场景

导出的数值单元格格式是文本。 客户每次都要手动转为数值,往往一个表格就是好多万数据,转换起来等半天。

解决方案

听说@Excel 设置type=10即可

POM引入easyPoi相关的:

<!-- easyExcel start -->
<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>druid</artifactId>
    <version>1.1.9</version>
</dependency>

<dependency>
    <groupId>cn.afterturn</groupId>
    <artifactId>easypoi-web</artifactId>
    <!--<version>4.3.0</version>-->
    <version>3.2.0</version>
</dependency>
<dependency>
    <groupId>cn.afterturn</groupId>
    <artifactId>easypoi-base</artifactId>
    <!--<version>4.3.0</version>-->
    <version>3.2.0</version>
</dependency>
<dependency>
    <groupId>cn.aftertur

原创不易,完成人机校验,阅读全文

相关推荐