简单的任务调度 直接使用schedule 有两种方式,注解和xml
注解 :
<task:annotation-driven/>
xml
<task:scheduled-tasks> <task:scheduled ref="helloWorldImpl1" method="start" cron="0 48/3 * * * ?"/> </task:scheduled-tasks>
http://www.cnblogs.com/Gyoung/p/5339242.html
简单的任务调度 直接使用schedule 有两种方式,注解和xml
注解 :
<task:annotation-driven/>
xml
<task:scheduled-tasks> <task:scheduled ref="helloWorldImpl1" method="start" cron="0 48/3 * * * ?"/> </task:scheduled-tasks>
http://www.cnblogs.com/Gyoung/p/5339242.html
转载于:https://my.oschina.net/ouyangtaohong/blog/791313