
SOFTMOA TECHNOLOGY
[ spring ] 스프링에서 스케줄링(Schedule) 등록하는 방법
소프트모아가 정리한 기술 기록입니다.
Contents
작성일 2014. 10. 28.
root.xml 즉 스프링 설정파일에서
task namespace 추가후
<task:annotation-driven/> 어노테이션 설정 선언하고.
//@Scheduled(cron="1,2,3,4,5 * * * * ?") // 일정 시간마다
@Scheduled(fixedDelay = 3600000) //ms 초 마다.
public void solrIndexSchedule() {
}
이렇게 사용한다... 아 편하다.
Share this
Spring
Showing 1 to 10 of 78 entries
