index
Spring Cron Expression Examples
Every example is a valid six-field Spring cron expression with the Java annotation you can paste into your code.
Every minute0 * * * * *
Runs at the start of every minute, every hour, every day.Every 5 minutes0 */5 * * * *
Runs at 10:00, 10:05, 10:10 and so on — five times per hour.Every 10 minutes0 */10 * * * *
Runs at 10:00, 10:10, 10:20 … 10:50 — six times per hour.Every 15 minutes0 */15 * * * *
Runs four times per hour: at :00, :15, :30 and :45.Every 30 minutes0 */30 * * * *
Runs at :00 and :30 of every hour.Every hour0 0 * * * *
Runs once an hour, on the hour.Every day0 0 0 * * *
Runs at 00:00:00 (midnight) in the configured timezone, every day.Every weekday0 0 0 * * MON-FRI
Runs at 00:00:00 on Monday, Tuesday, Wednesday, Thursday and Friday.Weekdays at 9 AM0 0 9 * * MON-FRI
Runs at 09:00:00 from Monday to Friday.Every Monday0 0 0 * * MON
Runs at 00:00:00 every Monday.First Monday0 0 0 ? * MON#1
Runs at 00:00:00 on the first Monday of every month.Last Friday0 0 0 * * 5L
Runs at 00:00:00 on the last Friday of every month.First weekday0 0 0 1W * *
Runs at 00:00:00 on the weekday nearest the 1st of the month, without leaving that month.Last day of month0 0 0 L * *
Runs at 00:00:00 on the last calendar day of every month.