Apache-POI-设置单元格背景色
版本:3.14
XSSFCell mobileCell = row.getCell(0);
XSSFCellStyle cellStyle = wb.createCellStyle();
cellStyle.setFillForegroundColor(IndexedColors.RED.getIndex());
cellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
mobileCell.setCellStyle(cellStyle);