spring Quartz (1) 썸네일형 리스트형 spring batch, spring scheduler, spring quartz 알아보기 Spring scheduler은 활성화를 위해 EnableScheduling 어노테이션을 붙여주면 된다. @EnableScheduling @SpringBootApplication public class BatchApplication { public static void main(String[] args) { SpringApplication.run(BatchApplication.class, args); } } 특징으로는 method는 void return 타입을 가져야한다 method는 파라미터를 가질수없다 @Component @EnableAsync public class ScheduleTest { @Scheduled(fixedDelay = 1000) // 작업이 끝난 시점부터 시간 세기 public vo.. 이전 1 다음