Skip to content
SpringCronTools

example · 6 fields

Spring Cron Expression for Every 30 minutes

Runs at :00 and :30 of every hour.

spring cron
0 */30 * * * *

javaJava @Scheduled

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

fieldsField breakdown

  • SEC0at second 00-59
  • MIN*/30on minutes 0, 300-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:30:00Sun, 4 Oct 2026in 6 min
04:00:00Sun, 4 Oct 2026in 36 min
04:30:00Sun, 4 Oct 2026in 1 hour
05:00:00Sun, 4 Oct 2026in 2 hours
05:30:00Sun, 4 Oct 2026in 2 hours

mistakesCommon mistakes

  • Using "30 * * * * *" which runs once an hour, at 30 seconds past the hour.
  • Confusing "every 30 minutes" with "every half hour starting at 15 past".

nextRelated Spring cron examples

nextRelated guides

nextRelated tools

Questions

How do I run a job at the top of every hour and half hour?

Use @Scheduled(cron = "0 */30 * * * *").