![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
excel导入
guo0818
这个作者很懒,什么都没留下…
展开
-
Excel导入的时候读取公式单元格的值
Excel导入的时候读取公式单元格的值/** * 获取表格单元格Cell内容 * @param cell * @return */ private static String getCellValue(Cell cell) { String result = new String(); switch (cell.getCellType()) { case Cell.CELL_TYPE_NUMERI原创 2020-10-28 16:36:51 · 1047 阅读 · 0 评论 -
poi导入excel表格数据时Cannot get a text value from a numeric cell
异常描述:在导入excel的时候在获取excel单元格数据的时候会出现Cannot get a text value from a numeric cell的异常抛出。异常原因:poi读取excel单元格的数据,cell有不同的数据类型(CELL_TYPE_NUMERIC,CELL_TYPE_STRING,CELL_TYPE_FORMULA),如果cell中的数据是数值的话,如果你没有给他设置原创 2016-12-16 16:03:36 · 20635 阅读 · 2 评论