작업제목 : 스프링(부트 포함) 배치 프로그램(SELECT 후 INSERT DB)
작업순서 : 
1. 스프링 부트 pom.xml 설정
2. BatchVO.class, BatchConfiguration.class, BatchJob.class, BatchApplication.class 생성
3. BatchConfiguration.class 작성
4. BatchVO.class 작성
5. BatchJob.class 작성
6. BatchApplication.class 작성
7. 정상 작동되는지 테스트 및 확인
8. jar 파일로 생성
9. bat 파일 생성 후 bat 파일로 실행
10. 윈도우 스케줄러에 등록하여 특정 시간에 bat 파일이 작동되도록 구성

package com.bootbatch.main;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

//lomob으로 getter, stter를 받는다.
@Getter
@Setter
//@NoArgsConstructor 파라미터가 없는 default 생성자를 생성해주는 어노테이션이다.
@NoArgsConstructor
public class UserVO {
	private int count;
}
@NoArgsConstructor 어노테이션으로 인해 다음과 같이 생성자가 생성된 것을 확인할 수가 있다.

+ Recent posts