一:添加POI的maven依賴
二:簡單的demo
三:導出結果
四:內容
POI合併單元格所使用的方法 sheet.addMergedRegion(CellRangeAddress cellRangeAddress); CellRangeAddress 對象的構造方法需要傳入合併單元格的 首行、最後一
代碼: sheet.addMergedRegion(new CellRangeAddress(firstRow, lastRow, firstCol, lastCol)); CellRangeAddress(int firstRo