Home  >  Q&A  >  body text

java - quartz.ScheduleJob scheduling time 0/5 * * * * ? How long does it represent?

quartz.ScheduleJob调度时间0/5 * * * * ?表示多长时间,这个都是什么意思
天蓬老师天蓬老师2646 days ago1601

reply all(3)I'll reply

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-06-23 09:16:38

    Executed every 5 seconds

    The seven fields from left to right are seconds, minutes, hours, days, months, days of the week, and years. . . . The last one is optional.
    The same seven fields are executed when they match the current time. . .

    n/m represents every m starting from n, that is, n,n+m,n+2m....
    * represents any possible value. For example, when used in seconds, it is 0, 1, 2, 3,..., 59
    ?. It can be used in days and days of the week, indicating that this field is ignored. It feels no different from *, but in the document Say there is a difference and let yourself experience it (your sister). . . It seems that if you only give the value of one field and ignore the other, use ?

    http://www.quartz-scheduler.o...

    http://www.quartz-scheduler.o...

    reply
    0
  • 漂亮男人

    漂亮男人2017-06-23 09:16:38

    If you are asking about crontab
    It will be executed every 5 minutes.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-06-23 09:16:38

    There is a special online generator for corn expressions. You don’t need to remember it. Just read it a few times and it’s almost done

    reply
    0
  • Cancelreply