Support for specifying both a day-of-week AND a day-of-month parameter is not implemented
2015-03-10 16:19
603 查看
在使用调度器的时候,遇到了如下的错误:
这个错误的原因就是因为你的Cron表达式配置错误了:
即,你把日期和周同时指定了值(*也代表指定值,只是任意值而已)
你的配置可能是:0 18 17 * * ,或者0 18 17 * 2-6,或者0 18 17 10 * 2-6等等。
如果你的日期和周同时为?会报如下错误:
总结:当我们配置日期和周时,我们应该注意只能指定二者中的一个,另一个必须为?。如:0 18 17 * * ?或者0 18 17 ? * 2-6等等。
Support for specifying both a day-of-week AND a day-of-month parameter is not implemented.
这个错误的原因就是因为你的Cron表达式配置错误了:
即,你把日期和周同时指定了值(*也代表指定值,只是任意值而已)
你的配置可能是:0 18 17 * * ,或者0 18 17 * 2-6,或者0 18 17 10 * 2-6等等。
如果你的日期和周同时为?会报如下错误:
'?' can only be specfied for Day-of-Month -OR- Day-of-Week.
总结:当我们配置日期和周时,我们应该注意只能指定二者中的一个,另一个必须为?。如:0 18 17 * * ?或者0 18 17 ? * 2-6等等。
相关文章推荐
- Support for specifying both a day-of-week AND a day-of-month parameter is not implemented.
- [异常]Support for specifying both a day-of-week AND a day-of-month parameter is no
- Neutron数据库同步错误 NotImplementedError: No support for ALTER of constraints in SQLite dialect
- Scene is unreachable due to lack of entry points and does not have an identifier for runtime access
- objc[2213]: Class _NSZombie_BSXPCMessage is implemented in both ?? and ??. One of the two will be us
- Scene is unreachable due to lack of entry points and does not have an identifier for runtime access
- 警告: Scene is unreachable due to lack of entry points and does not have an identifier for runtime acc
- Scene is unreachable due to lack of entry points and does not have an identifier for runtime access via -instantiateViewControllerWithIdentifier解决办法
- 87.You want to display the date for the first Mon day of the next month and
- Neutron数据库同步错误 NotImplementedError: No support for ALTER of constraints in SQLite dialect
- Swift: 消除警告-Scene is unreachable due to lack of entry points and does not have an identifier for
- Scene is unreachable due to lack of entry points and does not have an identifier for runtime access
- iOS:Class Foo is implemented in both MyApp and OtherApp. One of the two will be used. Which one is u
- objc[2213]: Class _NSZombie_BSXPCMessage is implemented in both ?? and ??. One of the two will be us
- The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for
- '?' can only be specfied for Day-of-Month -OR- Day-of-Week.
- Scene is unreachable due to lack of entry points and does not have an identifier for runtime access
- 2个CMD命令例子 - for tokens delims echo - checkDayOfMonth and add datetime into file name
- “API design is like sex: Make one mistake and support it for the rest of your life.”
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法