Implementing Cron-Based Scheduled Tasks in Spring
Cron Expression Syntax
A cron expression is a string that defines the schedule for task execution. It consists of 6 or 7 fields separated by spaces:
Field
Allowed Values
Special Characters
Second
0-59
, - * /
Minute
0-59
, - * /
Hour
0-23
, - * /
Day of Month
1-31
, - * / ? L W
Month
1-12 or JAN-DEC
, - * /
Day of Week
1-7 or S ...
Posted on Fri, 04 Sep 2026 16:44:56 +0000 by austar