poi之3.17版与POI旧版本对比,属性或方法变动之处
颜色定义变化
旧版本 : HSSFColor.BLACK.index
新版本 : IndexedColors.BLACK.index
获取单元格格式
旧版本 : cell.getCellType 与之应对的单元格格式 HSSFCell.CELL_TYPE_BLANK
新版本 : cell.getCellTypeEnum 与之对应的单元格格式 BLANK (org.apache.poi.ss.usermodel.CellType.BLANK)
设置单元格格式
旧版本 : row.getCell(0).setC
原创
2021-11-16 17:39:33 ·
1251 阅读 ·
0 评论