关于Spring Quartz中的*号(wildcard, asterix )和?号(question mark)的不同

查了一些文章,有的说「*」代表所有值,「?」代表不确定的值,你不想设置的值。

但不想设置和代表所有什么不同呢,在我看来一样。

Quartz官方文档是这么说的:

http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-06.html

The ‘?’ character is allowed for the day-of-month and day-of-week fields. It is used to specify “no specific value”. This is useful when you need to specify something in one of the two fields, but not the other. See the examples below (and CronTrigger JavaDoc) for clarification.

说「?」使用在day-of-month and day-of-week 这两个字段,被用来指定不确定的值,和上面说的差不多。


StackOverFlow上有一个帖子,说在Spring中,「*」和「?」是一个意思,具体请看下面连接中,点赞数比较多的那个回答,和这个回答下面的追答。

http://stackoverflow.com/questions/30341067/difference-between-and-in-spring-scheduledcron

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值