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