poi导出内容太长,可以通过固定列宽然后再设置CellStyle属性值让其自动换行
public static void setCellWrapText(XSSFWorkbook workbook, XSSFSheet workSheet, int startRow, int endRow, int startColumn, int endColumn, boolean isWrapText) { for (int i = startRow; i <= endRow; i++) { for (int j = startColumn; j <= .
原创
2021-11-12 16:57:28 ·
2116 阅读 ·
0 评论