POI -> 대용량 데이터 Excel 다운로드 POI 라이브러리를 사용한 대용량 데이터 Excel 다운로드 소스 정리 private static final int THREAD_POOL_SIZE = 10; @Transactional(readOnly = true) public void oralHealthRiskAssessmentDownload(/*String token*/) throws InterruptedException, IOException { List list = entity조회서비스.listAll(); XSSFWorkbook workbook = new XSSFWorkbook(); Sheet sheet = workbook.createSheet("시트명"); ExecutorService executorService = Executors.newFix.. Backend/Spring 2년 전
POI -> 대용량 데이터 Excel 업로드 및 DB 저장 (Batch 사용) Poi 를 사용하기 위한 의존성 추가 // excel implementation 'org.apache.poi:poi:5.2.3' implementation 'org.apache.poi:poi-ooxml:5.2.3' 간단한 RestController 를 작성 import com.kaii.dtmt.application.excel.ExcelFacade; import com.kaii.dtmt.infrastructure.annotation.AuthToken; import com.kaii.dtmt.presentation.shared.response.dto.BaseResponse; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; imp.. Backend/Spring 2년 전