在上一篇导出篇我们使用版本2.2.10导出excel,但无法处理null字段拦截。
https://blog.csdn.net/cxj443914930/article/details/123538144
下面我们实现对null字段的拦截处理
升级EasyExcel版本, 3.0.5可以不用导入poi-ooxml、和poi两个包
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>3.0.5</version>
</dependency>
转换器IntegerNullableConverter.java
package com.learning.easyexcel.converter;
import com.alibaba.excel.converters.NullableObjectConverter;
import com.alibaba.excel.enums.CellDataTypeEnum;
import com.alibaba.excel.metadata.GlobalConfiguration;