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