[Solved] Java POI export error: Invalid row number (65536) outside allowable range

Error Message:
Invalid row number (65536) outside allowable range (0..65535)
Reason:

When XSSFWorkbook exporting xls, a sheet can only export up to 65535 pieces of data.

Solution:

At the same time, the exported excel file format is changed from XLS to xlsx

Read More: