Spring cron expression for every after 30 minutes

前端 未结 5 1632
南笙
南笙 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:55

    If someone is using @Sceduled this might work for you.

    @Scheduled(cron = "${name-of-the-cron:0 0/30 * * * ?}")

    This worked for me.

提交回复
热议问题