Quartz Cron expression :Run every 15 days ie twice in a month

前端 未结 4 1955
小蘑菇
小蘑菇 2021-01-02 13:15

I want to set the scheduler with a quartz cron expression which will trigger every 15 days ,for example 1st and 15th of every month.The 0 15 10 15 * ? is triggering only on

4条回答
  •  孤街浪徒
    2021-01-02 13:58

    The following also works fine, it executes your command on the 15th and the 30th at 02:00 AM of every month:

    0 2 */15 * * 
    

提交回复
热议问题