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 | Mon, 5 Oct 2026 | in 21 hours |
| 00:00:00 | Tue, 6 Oct 2026 | in 2 days |
| 00:00:00 | Wed, 7 Oct 2026 | in 3 days |
| 00:00:00 | Thu, 8 Oct 2026 | in 4 days |
| 00:00:00 | Fri, 9 Oct 2026 | in 5 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.