Spring task
定时任务模板
<task:scheduled-tasks scheduler="taskScheduler">
<task:scheduled ref="app" method="execute1" cron="30 * * * * ?"/>
<task:scheduled ref="app" method="execute2" cron="30 10 * * * ?"/>
<task:scheduled ref="app" method="execute3" cron="30 10 1 * * ?"/>
<task:scheduled ref="app" method="execute4" cron="30 10 1 20 * ?"/>
<task:scheduled ref="app" method="execute5" cron="30 10 1 20 10 ?"/>
<task:scheduled ref="app" method="execute6" cron="15,30,45 * * * * ?"/>
<task:scheduled ref="app" method="execute7" cron="15-45 * * * * ?"/>
<task:scheduled ref="app" method="execute8" cron="15/5 * * * * ?"/>
<task:scheduled ref="app" method="execute9" cron="15-30/5 * * * * ?"/>
<task:scheduled ref="app" method="execute10" cron="0 0/3 * * * ?"/>
<task:scheduled ref="app" method="execute11" cron="0 15 10 ? * MON-FRI"/>
</task:scheduled-tasks>