Convert data:xxx return null, at row:1
作者:互联网
工具:
alibaba.excel
WriteCellData writeCellData = new WriteCellData(); writeCellData.setNumberValue(new BigDecimal("1"));
结果:报错
return new WriteCellData<>(BigDecimal.valueOf(Double.valueOf(value)));
结果:正常
根据源码可知 在实例化对象赋值后 需要指定Type
C
onvert data:100.00 return null, at row:1
标签:Convert,valueOf,return,writeCellData,xxx,WriteCellData,new,null 来源: https://www.cnblogs.com/aypls/p/16692796.html