Skip to the content.

@Scope는 어떤 시점에 bean을 생성/소멸 시킬 지 bean의 lifecycle을 설정

@JobScope는 job 실행 시점에 생성/소멸

@StepScope는 step 실행 시점에 생성/소멸

Spring의 @Scope과 같은 것

Job과 Step 라이프사이클에 의해 생성되기 때문에 Thread safe하게 작동

@Value(“#{jobParameters[key]}”)를 사용하기 위해 @JobScope와 @StepScope 필수