The maximum number of cell styles was exceeded. You can define up to 64000 styles

在导出报表的时候,CellStyle cellStyle = workbook.createCellStyle();,创建了很多对象,是由于cell styles太多create造成,把cellstyle设置放到循环外面,就可以解决这个问题

你可能感兴趣的:(The maximum number of cell styles was exceeded. You can define up to 64000 styles)