合并单元格边框样式消失
1、前置条件(合并前的单元格边框必须存在)
2、设置合并单元格样式
XSSFSheet sheet;
CellRangeAddress cellRangeAddress = new CellRangeAddress(startRow, overRow, startCol, overCol);
sheet.addMergedRegion(cellRangeAddress);
RegionUtil.setBorderBottom(BorderStyle.THIN, cellRangeAddress, sheet);
RegionUtil.setBorderLeft(BorderStyle.THIN, cellRangeAddress, sheet);
RegionUtil.setBorderRight(BorderStyle.THIN, cellRangeAddress, sheet);
RegionUtil.setBorderTop(BorderStyle.THIN, cellRangeAddress, sheet);