问号在Java cron中的意义 [英] Significance of question mark in Java cron

查看:369
本文介绍了问号在Java cron中的意义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

源维基百科:


问号(?)代替*每月的日期或星期几的空白。


上述说法对我来说没有多大意义。



所以如果我写一些cron作为 0 0 0?



这是一个有点混乱的,因为它是每个月的第一次,

解决方案

我不是Cron的专家的无情开始)

但根据 www.cronmaker.com ,它每天执行。 / p>

Source Wikipedia:

Question mark (?) is used instead of '*' for leaving either day-of-month or day-of-week blank.

The above statement is not making much sense to me.

So if I write some cron as 0 0 0 ? * * then does it mean first of every month or it means it will execute daily?

It is a bit confusing as Java crons start with seconds while other crons start with minute.

解决方案

I am not Cron expert (I think - it is just bunch of nonsence starts)
But according www.cronmaker.com it is executed daily.

这篇关于问号在Java cron中的意义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆