Cron Builder for Spring @Scheduled — Java Cron
Quick Answer: Spring @Scheduled uses 6-field cron: seconds minutes hours day-of-month month day-of-week. Note the field order starts with seconds (unlike Unix cron). Example: @Scheduled(cron = "0 0 */4 * * *") runs every 4 hours at minute 0, second 0.
Cron Expression
* * * * *
Plain English
every minute, of every hour
Next 5 Run Times
4/22/2026, 4:55:00 AM
4/22/2026, 4:56:00 AM
4/22/2026, 4:57:00 AM
4/22/2026, 4:58:00 AM
4/22/2026, 4:59:00 AM
FAQ
How is Spring cron different from Unix cron?
Spring adds a seconds field as the first position. Spring uses 6 fields (sec min hr dom mon dow), Unix uses 5 fields (min hr dom mon dow). Spring also supports SUN-SAT for weekdays.
Can I set the timezone for Spring @Scheduled?
Yes. Use the zone attribute: @Scheduled(cron = "0 0 9 * * MON", zone = "America/New_York"). Without it, the server JVM timezone is used.