From b9fd8586ff4068c06091ba4a3f56168035ef6585 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 11 Apr 2016 19:27:06 +0200 Subject: [PATCH] Fixed XML example for setup of scheduled tasks Issue: SPR-14145 (cherry picked from commit 550a320) --- .../scheduling/annotation/EnableScheduling.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableScheduling.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableScheduling.java index b5f643f31b..9b5b805994 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableScheduling.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableScheduling.java @@ -163,16 +163,25 @@ import org.springframework.scheduling.config.ScheduledTaskRegistrar; * *

For reference, the example above can be compared to the following Spring XML * configuration: + * *

  * {@code
  * 
+ *
  *     
+ *
  *     
- *     
+ *
+ *     
+ *         
+ *     
+ *
  *     
+ *
  * 
  * }
- * the examples are equivalent save that in XML a fixed-rate period is used + * + * The examples are equivalent save that in XML a fixed-rate period is used * instead of a custom {@code Trigger} implementation; this is because the * {@code task:} namespace {@code scheduled} cannot easily expose such support. This is * but one demonstration how the code-based approach allows for maximum configurability