BSTEK Development Framework2(BDF2) : 常见异常

Merged region E2 must contain 2 or more cells

 

Caused by: java.lang.IllegalArgumentException: Merged region E2 must contain 2 or more cells
    at org.apache.poi.hssf.usermodel.HSSFSheet.addMergedRegion(HSSFSheet.java:719)
    at org.apache.poi.hssf.usermodel.HSSFSheet.addMergedRegion(HSSFSheet.java:673)
    at com.bstek.bdf2.export.excel.ExcelReportBuilder.buildGridExcelHeader(ExcelReportBuilder.java:108)

把 poi 的依赖改为 3.13就可以了,不要用3.15