프레임워크/Spring Batch (1) 썸네일형 리스트형 JOB - ItemReader 어쩌구 저쩌구 해도 ItemReader를 FlatFileItemReader가 계승하고 있다. 두개의 컴포넌트를 가지고 있다. 1. Resource : Interface로써, 읽어들일 대상 파일을 나타내는 스프링의 Resource이다. ( springframework-core에 존재하며, org.springframework.core.io 패키지에 존재한다. ) 2. LineMapper의 구현체 : (springframework-batch-infrastructure에 존재하며, org.springframework.batch.item.file 패키지에 존재한다. ) 역할은 Resource에서 읽어드린 파일의 각줄에 매핑을 무엇을 할지 설정하는 것이다. 요 메인 컴포넌트 두개로 이어진게, FlatFileItem.. 이전 1 다음