第一种方法:
主动改变excel表格的数据类型:
Cell cell=row.getCell(0);
if(cell.getCellType() != Cell.CELL_TYPE_STRING){
cell.setCellType(Cell.CELL_TYPE_STRING);
}
String phone=cell.getStringCellValue();
第二种:利用format格式化:
Cell cell=row.getCell(0);
DecimalFormat df = new DecimalFormat("#");
String phone = df.format(cell.getNumericCellValue());