Skip to content

v0.2.3

Choose a tag to compare

@BBackJK BBackJK released this 29 Aug 02:52
· 6 commits to main since this release
d87daf8

πŸ”₯ Add Feature List Grid Excel Writer

how to use

@Controller
public class ExcelController {

    @GetMapping(value = "/member/excel/list")
    public void listExcelDownload(HttpServletResponse response) {
        List<List<String>> header = new ArrayList<>();
        List<String> headerRow = new ArrayList<>();
        headerRow.add("헀더1");
        headerRow.add("헀더2");
        headerRow.add("헀더3");
        headerRow.add("헀더4");
        header.add(headerRow);


        List<List<Object>> body = new ArrayList<>();
        int loopCount = 4;
        for (int i=0; i<loopCount;i++) {
            List<Object> bodyRow = new ArrayList<>();
            bodyRow.add((i+1) + "-λ°”λ””1");
            bodyRow.add((i+1) + "-λ°”λ””2");
            bodyRow.add((i+1) + "-λ°”λ””3");
            bodyRow.add((i+1) + "-λ°”λ””4");
            body.add(bodyRow);
        }

        GridExcelWriter<List<Object>> temp = new ListGridExcelWriter(header);
        temp.setDataList(body);
        temp.download(response, "리슀트_κ·Έλ¦¬λ“œ_μ—‘μ…€_라이터.xlsx");
    }
}

What's Changed

Full Changelog: v0.1.0...v0.2.3