Java – spring – quatz shedular.
I am trying to write following 2 cron expressions
1- cron expression to execute every day once in early morning by 3AM.
2 -cron expression to execute every after 3 hours
help appriciated
following are expressions i assume will work but have to wait to see.
1- "0 0 0/1 * * ?"
2- "0 3 * * * ?"
Your expressions are wrong. The first one runs every hour while the second runs on every 3rd minute of every hour.
To run every day at 3 AM:
I don’t understand your second requirement.