@Override
    public void invoke(Map<Integer, String> data, AnalysisContext context) {
        log.info("Parsed a data row: {}", JSON.toJSONString(data));
        cachedDataList.add(data);
        if (cachedDataList.size() >= BATCH_COUNT) {
            saveData();
            cachedDataList = ListUtils.newArrayListWithExpectedSize(BATCH_COUNT);
        }
    }
Save to the database every 5 records. In actual use, it can be set to 100 records, and then clear the list to facilitate memory recycling.
fastexcel-test/src/test/java/cn/idev/excel/test/demo/read/NoModelDataListener.java