Spring cron expression for every after 30 minutes

前端 未结 5 1626
南笙
南笙 2021-01-30 06:33

I have following Spring job to run after every 30 minutes. Please check my cron expression, is that correct?

\"0 0 0 * * 30\"


H

5条回答
  •  野的像风
    2021-01-30 06:59

    According to the Quartz-Scheduler Tutorial It should be value="0 0/30 * * * ?"

    The field order of the cronExpression is

    1.Seconds

    2.Minutes

    3.Hours

    4.Day-of-Month

    5.Month

    6.Day-of-Week

    7.Year (optional field)

    Ensure you have at least 6 parameters or you will get an error (year is optional)

提交回复
热议问题