【问题标题】:spring cron jobs sceduler , monthly basisspring cron作业调度程序,每月
【发布时间】:2013-12-19 02:35:06
【问题描述】:

如果我想在一个月的最后一个工作日运行工作,那么春季 cron-expression 会是什么。 就像这个月在星期六结束时,我需要在星期五解雇它。 工作日包括周一至周五。

【问题讨论】:

    标签: spring cron cron-task cronexpression


    【解决方案1】:

    您需要使用LW 表达式,请参阅:http://quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger

      The 'L' and 'W' characters can also be combined in the day-of-month field 
    to yield 'LW', which translates to *"last weekday of the month"*.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-11
      • 1970-01-01
      • 2018-05-28
      相关资源
      最近更新 更多