Cell cell = row.getCell(c);
cell.setCellType(Cell.CELL_TYPE_STRING);
String parkName = cell.getStringCellValue();
java.lang.IllegalStateException: Cannot get a text value from a numeric cell
at org.apache.poi.hssf.usermodel.HSSFCell.typeMismatch(HSSFCell.java:640)
DataFormatter formatter = new DataFormatter(); //creating formatter using the default locale
Cell cell = row.getCell(c);
String parkName = formatter.formatCellValue(cell); //Returns the formatted value of a cell as a String regardless of the cell type.
使用poi读取excel文件 Cannot get a text value from a numeric cell
原文:https://www.cnblogs.com/daleyzou/p/poi-exception.html