일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Android
- 선택적조인
- jQuery
- Ajax
- JDOM
- PLSQL
- GPS
- swingx
- ibsheet
- rowspan
- Google Map
- appspresso
- 가우스
- WebLogic
- tomcat
- jsr 296
- dock
- oracle
- MySQL
- MFC
- 전자정부프레임워크
- Eclipse
- Struts
- node.js
- phonegap
- Spring
- iBATIS
- sencha touch
- JSON
- PHP
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");
}
}