Skip to content
SpringCronTools

example · 6 fields

Spring Cron Expression for Every hour

Runs once an hour, on the hour.

spring cron
0 0 * * * *

javaJava @Scheduled

@Scheduled(cron = "0 0 * * * *")

fieldsField breakdown

  • SEC0at second 00-59
  • MIN0at minute 00-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)

Next execution times in UTC
timedatein
04:00:00Sun, 4 Oct 2026in 36 min
05:00:00Sun, 4 Oct 2026in 2 hours
06:00:00Sun, 4 Oct 2026in 3 hours
07:00:00Sun, 4 Oct 2026in 4 hours
08:00:00Sun, 4 Oct 2026in 5 hours

mistakesCommon mistakes

  • Using "0 * * * * *" and describing it as "every hour" — that expression runs every minute.
  • Expecting a run exactly 60 minutes after the previous one across a DST change; cron follows the wall clock.

nextRelated Spring cron examples

nextRelated guides

nextRelated tools

Questions

What is the difference between 0 * * * * * and 0 0 * * * *?

"0 * * * * *" runs every minute (the minute field is a wildcard). "0 0 * * * *" runs once an hour because the minute field is fixed to 0.