Skip to content

Commit 85597f2

Browse files
ottlingersbrannen
authored andcommitted
Improve @scheduled Javadoc regarding cron element order
Closes gh-22777
1 parent eb97169 commit 85597f2

File tree

1 file changed

+10
-2
lines changed
  • spring-context/src/main/java/org/springframework/scheduling/annotation

1 file changed

+10
-2
lines changed

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

+10-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,17 @@
6666

6767
/**
6868
* A cron-like expression, extending the usual UN*X definition to include triggers
69-
* on the second as well as minute, hour, day of month, month and day of week.
69+
* on the second, minute, hour, day of month, month and day of week.
7070
* <p>E.g. {@code "0 * * * * MON-FRI"} means once per minute on weekdays
71-
* (at the top of the minute - the 0th second).
71+
* (at the top of the minute - the 0th second). The order read from left to right is:
72+
* <ul>
73+
* <li>second</li>
74+
* <li>minute</li>
75+
* <li>hour</li>
76+
* <li>day of month</li>
77+
* <li>month</li>
78+
* <li>day of week</li>
79+
* </ul>
7280
* <p>The special value {@link #CRON_DISABLED "-"} indicates a disabled cron trigger,
7381
* primarily meant for externally specified values resolved by a ${...} placeholder.
7482
* @return an expression that can be parsed to a cron schedule

0 commit comments

Comments
 (0)