常见问题汇总(十九)——关于POI

1、导入Excle时,手机号(由数字组成的长字符串)时,无法正确获取

  BigDecimal phone = new BigDecimal(row.getCell(4).getNumericCellValue());
            createBean.setPhone(phone.toString());//借助BigDecimal处理

猜你喜欢

转载自blog.csdn.net/qq_35813653/article/details/81207353