@Test
    public void compositeFill() {
        // Template note: Use {} to represent variables. If the template contains "{", "}" as special characters, use "\{", "\}" instead.
        // {} represents a regular variable, {.} represents a list variable, and {prefix.} distinguishes different lists.
        String templateFileName =
            TestFileUtil.getPath() + "demo" + File.separator + "fill" + File.separator + "composite.xlsx";

        String fileName = TestFileUtil.getPath() + "compositeFill" + System.currentTimeMillis() + ".xlsx";
        ExcelWriter excelWriter = EasyExcel.write(fileName).withTemplate(templateFileName).build();
        WriteSheet writeSheet = EasyExcel.writerSheet().build();
        FillConfig fillConfig = FillConfig.builder().direction(WriteDirectionEnum.HORIZONTAL).build();
        // If there are multiple lists, the template must use {prefix.}, where "data1" is the prefix.
        // Multiple lists must be wrapped in FillWrapper.
        excelWriter.fill(new FillWrapper("data1", data()), fillConfig, writeSheet);
        excelWriter.fill(new FillWrapper("data1", data()), fillConfig, writeSheet);
        excelWriter.fill(new FillWrapper("data2", data()), writeSheet);
        excelWriter.fill(new FillWrapper("data2", data()), writeSheet);
        excelWriter.fill(new FillWrapper("data3", data()), writeSheet);
        excelWriter.fill(new FillWrapper("data3", data()), writeSheet);

        Map<String, Object> map = new HashMap<String, Object>();
        //map.put("date", "2019-10-09 13:28:28");
        map.put("date", new Date());

        excelWriter.fill(map, writeSheet);

        // Do not forget to close the stream
        excelWriter.finish();
    }
Example of composite data filling with multiple lists.

@since 2.2.0-beta1
fastexcel-test/src/test/java/cn/idev/excel/test/temp/fill/FillTempTest.java