1、富文本中文字设置不同颜色和字体不生效
String stringCellValue = cell.getStringCellValue();if (StringUtils.isNotBlank(stringCellValue) && stringCellValue.contains(startIndex) && stringCellValue.contains(endIndex)) {RichTextString richStringCellValue = cell.getRichStringCellValue();Font redFont = workbook.createFont();redFont.setColor(IndexedColors.RED.getIndex());if (richStringCellValue instanceof XSSFRichTextString) {XSSFRichTextString xssfRichTextString = new XSSFRichTextString(cell.getStringCellValue());xssfRichTextString.applyFont(stringCellValue.indexOf(startIndex),stringCellValue.indexOf(endIndex) +endIndex.length(