Skip to content
SpringCronTools

example · 6 fields

Spring Cron Expression for Every 5 minutes

Runs at 10:00, 10:05, 10:10 and so on — five times per hour.

spring cron
0 */5 * * * *

javaJava @Scheduled

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

fieldsField breakdown

  • SEC0at second 00-59
  • MIN*/5on minutes 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 550-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
03:25:00Sun, 4 Oct 2026now
03:30:00Sun, 4 Oct 2026in 5 min
03:35:00Sun, 4 Oct 2026in 10 min
03:40:00Sun, 4 Oct 2026in 15 min
03:45:00Sun, 4 Oct 2026in 20 min

mistakesCommon mistakes

  • Writing "*/5 * * * *" (five fields). That is Unix cron; Spring needs the leading seconds field.
  • Forgetting to anchor the seconds field: "*/5 * * * * *" would run on seconds 0, 5, 10 … of every minute.

nextRelated Spring cron examples

nextRelated guides

nextRelated tools

Questions

What does */5 mean in a Spring cron expression?

It is a step: start at the lowest value of the field and increase by 5. In the minute field that is 0, 5, 10, 15 … 55.

How do I run every 5 minutes starting at a specific second?

Set the seconds field explicitly, for example "30 */5 * * * *" to run at 10:00:30, 10:05:30 and so on.