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