/**设置单元格格式为文本格式*/ HSSFCellStyle textStyle = workBook.createCellStyle(); HSSFDataFormat format = workBook.createDataFormat(); textStyle.setDataFormat(format.getFormat("@")); cell.setCellStyle(textStyle);//设置单元格格式为
poi设置excel默认格式为文本
最新推荐文章于 2024-04-15 09:22:58 发布