Browse Source

Fixed XML example for setup of scheduled tasks

Issue: SPR-14145
pull/1031/head
Juergen Hoeller 10 years ago
parent
commit
550a3209f7
  1. 4
      spring-context/src/main/java/org/springframework/scheduling/annotation/EnableScheduling.java

4
spring-context/src/main/java/org/springframework/scheduling/annotation/EnableScheduling.java

@ -168,7 +168,9 @@ import org.springframework.scheduling.config.ScheduledTaskRegistrar; @@ -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…
Cancel
Save