From 3f0b4586168c485fe3cd1134fdcce1d2e3f7a83f Mon Sep 17 00:00:00 2001 From: Igor Mukhin Date: Thu, 11 Aug 2016 15:04:54 +0200 Subject: [PATCH] Add aditional example to CronSequenceGenerator CronSequenceGenerator supports comma separated expressions but does not provide an example for it. This commit adds such an example. Closes gh-1132 --- .../scheduling/support/CronSequenceGenerator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-context/src/main/java/org/springframework/scheduling/support/CronSequenceGenerator.java b/spring-context/src/main/java/org/springframework/scheduling/support/CronSequenceGenerator.java index 95e096e2eb..93a5e75f0e 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/support/CronSequenceGenerator.java +++ b/spring-context/src/main/java/org/springframework/scheduling/support/CronSequenceGenerator.java @@ -42,6 +42,7 @@ import org.springframework.util.StringUtils; *
  • "0 0 * * * *" = the top of every hour of every day.
  • *
  • "*/10 * * * * *" = every ten seconds.
  • *
  • "0 0 8-10 * * *" = 8, 9 and 10 o'clock of every day.
  • + *
  • "0 * 6,19 * * *" = 6:00 AM and 7:00 PM every day.
  • *
  • "0 0/30 8-10 * * *" = 8:00, 8:30, 9:00, 9:30 and 10 o'clock every day.
  • *
  • "0 0 9-17 * * MON-FRI" = on the hour nine-to-five weekdays
  • *
  • "0 0 0 25 12 ?" = every Christmas Day at midnight