关于cron表达 [英] Something about cron expression
本文介绍了关于cron表达的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在我已经使用cron表达式设置了计划任务。
Now I have set a schedule task using cron expression.
但是我不知道如何在14:30编写cron表达式来执行相同的任务和17:45。
However I don't know how to write a cron expression to execute the same task at 14:30 and 17:45.
即使我尝试写 0 30,45 14,17 * *?*,但这也不是我想要的结果。
Even I tried to write "0 30,45 14,17 * * ? *", but it is not the result what I want.
推荐答案
在两个单独的行上写入相同的表达式:
Write the same expression on two separate lines:
0 30 14 * *? *
0 30 14 * * ? *
0 45 17 * *? *
0 45 17 * * ? *
这篇关于关于cron表达的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文