Fixed XML example for setup of scheduled tasks

Issue: SPR-14145
This commit is contained in:
Juergen Hoeller 2016-04-11 19:27:06 +02:00
parent b82df144e4
commit 550a3209f7
1 changed files with 3 additions and 1 deletions

View File

@ -168,7 +168,9 @@ import org.springframework.scheduling.config.ScheduledTaskRegistrar;
* <beans>
* <task:annotation-driven scheduler="taskScheduler"/>
* <task:scheduler id="taskScheduler" pool-size="42"/>
* <task:scheduled ref="myTask" method="work" fixed-rate="1000"/>
* <task:scheduled-tasks scheduler="taskScheduler">
* <task:scheduled ref="myTask" method="work" fixed-rate="1000"/>
* </task:scheduled-tasks>
* <bean id="myTask" class="com.foo.MyTask"/>
* </beans>
* }</pre>