嗨,我将SpringIntegration与触发器一起使用来轮询目录。到目前为止,一切都很好。
但是我在轮询器的开始和结束时间上遇到问题,例如12:05 pm和18:15 pm
let groupedTags = {
'other': {}
}
AddTag(groupedTags.other, "foo1", "bar1");
AddTag(groupedTags.other, "foo2", "bar2a");
AddTag(groupedTags.other, "foo2", "bar2b");
console.log(groupedTags);
// Can put this in a library.js
function AddTag(obj, field, tag) {
var items = obj[field] || (obj[field] = []);
items.push(tag);
}
以上在12点到18点之间的每一分钟都可以正常工作,但我也找不到设置时间的方法
是否支持
0 0/1 12-18 ? * MON-FRI
答案 0 :(得分:1)
您可以按照设置小时的方式来设置分钟:
0 15-35 12-17 1/1 * ? MON-FRI