javaIO 导出excel 如何是单元格内容换行
1、第一步为了方便展示,这里使用springboot项目,之前已经探讨过,可以参考下面的经验引用:

3、第三步请求到controller之后,将调用service的业务处理,这里将servcie中拼装业务逻辑,将业务查出来的数据,传入到单独处理excel的方法

5、第五步String cnt = "cnt" + "\r\n&孥恶膈茯quot;;HSSFCell cell = row.createCell((short)0);cell.setCellStyle(cellStyle);cell.setCellValue(new HSSFRichTextString(cnt));在excel中换行使用 :\r\n 即可
