javaJava @Scheduled
@Scheduled(cron = "0 * * * * *")fieldsField breakdown
- SEC0at second 00-59
- MIN*every minute0-59
- HR*during every hour0-23
- DOM*on every day of the month1-31 · L · W
- MON*in every month1-12 · JAN-DEC
- DOW*on every day of the week0-7 · MON-SUN · L · #
next runsNext executions (UTC)
| time | date | in |
|---|---|---|
| 03:24:00 | Sun, 4 Oct 2026 | now |
| 03:25:00 | Sun, 4 Oct 2026 | in 1 min |
| 03:26:00 | Sun, 4 Oct 2026 | in 2 min |
| 03:27:00 | Sun, 4 Oct 2026 | in 3 min |
| 03:28:00 | Sun, 4 Oct 2026 | in 4 min |
mistakesCommon mistakes
- Using "* * * * * *" instead. That expression fires 60 times per minute and will usually get a thread pool exhausted very quickly.
- Forgetting that Spring needs six fields: the seconds field has no default and cannot be omitted.