0
触发场景描述 读取 Excel 中 过长的数字有误:
例如读取: 100321572315281000 结果: 100221564646660990
触发Bug的代码
JavaBean:
@ExcelProperty("ID")
private String id;
读取代码:
BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(sourceExcelPath));
ExcelReader excelReader = EasyExcel.read(bufferedInputStream, BalFlowTran.class, new BalFlowTranListener()).build();
ReadSheet readSheet = EasyExcel.readSheet(0).build();
excelReader.read(readSheet);
// 这里千万别忘记关闭,读的时候会创建临时文件,到时磁盘会崩的
excelReader.finish();
提示的异常或者没有达到的效果 读出来的数字是: 100221564646660990