일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- sencha touch
- Google Map
- node.js
- 가우스
- Eclipse
- oracle
- JDOM
- JSON
- MFC
- 전자정부프레임워크
- WebLogic
- rowspan
- dock
- jQuery
- Spring
- 선택적조인
- tomcat
- jsr 296
- GPS
- appspresso
- ibsheet
- iBATIS
- Struts
- PHP
- swingx
- phonegap
- MySQL
- Ajax
- Android
- PLSQL
Archives
- Today
- Total
Where The Streets Have No Name
annotation based scheduler 본문
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-3.0.xsd">
<task:scheduler id="taskScheduler" />
<task:executor id="taskExecutor" pool-size="1" />
<task:annotation-driven executor="taskExecutor" scheduler="taskScheduler" />
</beans>
package egovframework.rte.test.web;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
@Service
public class Scheduler {
@Scheduled(cron="*/10 * * * * *")
public void job(){
System.out.println("@@@@@@@@@@@@@@@@@ - scheduler job");
}
}