javaJava @Scheduled
@Scheduled(cron = "0 0 0 * * MON-FRI")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
- DOWMON-FRIMonday to Friday0-7 · MON-SUN · L · #
Spring replaces names before parsing: MON-FRI = 1-5 .
next runsNext executions (UTC)
| time | date | in |
|---|---|---|
| 00:00:00 | Thu, 3 Dec 2026 | in 17 hours |
| 00:00:00 | Fri, 4 Dec 2026 | in 2 days |
| 00:00:00 | Mon, 7 Dec 2026 | in 5 days |
| 00:00:00 | Tue, 8 Dec 2026 | in 6 days |
| 00:00:00 | Wed, 9 Dec 2026 | in 7 days |
mistakesCommon mistakes
- Reading "every weekday" as "9 AM on weekdays". This expression fires at midnight.
- Assuming Saturday and Sunday are excluded by the day-of-month field — it stays "*" here on purpose.