본문으로 건너뛰기

SpringBoot에서 스케쥴링 사용하기

특정 시점이나 특정 시간 간격, 혹은 정해진 시간에 실행해야 하는 작업이 있을 수 있다.

There may be tasks that need to be executed at a specific point in time, at specific time intervals, or at scheduled times.

이런 작업들을 "스케쥴링 된 작업" 혹은 "배치작업" 이라고 하는데 Spring에서 지원하는 방법은 크게 두 가지가 있다.

These tasks are called "scheduled tasks" or "batch jobs", and Spring supports two main approaches.

이번에는 스프링의 스케쥴링 어노테이션을 사용한 스케쥴 작업을 생성 해 보려고 한다.

In this post, we will create a scheduled task using Spring's scheduling annotations.