javaJava @Scheduled
@Scheduled(cron = "0 0 0 * * 5L")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
- DOW5Lon the last Friday of the month0-7 · MON-SUN · L · #
next runsNext executions (UTC)
| time | date | in |
|---|---|---|
| 00:00:00 | Fri, 30 Oct 2026 | — |
| 00:00:00 | Fri, 27 Nov 2026 | — |
| 00:00:00 | Fri, 25 Dec 2026 | — |
| 00:00:00 | Fri, 29 Jan 2027 | — |
| 00:00:00 | Fri, 26 Feb 2027 | — |
mistakesCommon mistakes
- Copying the number from a Quartz expression: Quartz 6L means last Friday, Spring 5L does. The two dialects number days differently.
- Reading "L" in day-of-week as "last week" — it means "last occurrence of that weekday in the month".