Fixed XML example for setup of scheduled tasks
Issue: SPR-14145
This commit is contained in:
parent
b82df144e4
commit
550a3209f7
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue