javaJava @Scheduled
@Scheduled(cron = "0 0 0 * * MON")fieldsField breakdown
- SEC0at second 00-59
- MIN0at minute 00-59
- HR0at 00:000-23
- DOM*on every day of the month1-31 · L · W
- MON*in every month1-12 · JAN-DEC
- DOWMONMonday0-7 · MON-SUN · L · #
Spring replaces names before parsing: MON = 1 .
next runsNext executions (UTC)
| time | date | in |
|---|---|---|
| 00:00:00 | Mon, 5 Oct 2026 | in 20 hours |
| 00:00:00 | Mon, 12 Oct 2026 | — |
| 00:00:00 | Mon, 19 Oct 2026 | — |
| 00:00:00 | Mon, 26 Oct 2026 | — |
| 00:00:00 | Mon, 2 Nov 2026 | — |
mistakesCommon mistakes
- Assuming "1" means Monday in every dialect. In Spring 0 is Sunday and 1 is Monday; in Quartz 1 is Sunday.
- Forgetting that "0 0 0 * * 1" only matches Mondays — it does not match other weekdays.