更新配置
This commit is contained in:
parent
719d9a1740
commit
85f50f4aad
@ -3,8 +3,6 @@ package com.xkrs.common;
|
|||||||
import com.xkrs.helper.FirePointSubscribeManager;
|
import com.xkrs.helper.FirePointSubscribeManager;
|
||||||
import com.xkrs.utilsnew.DateTimeUtils;
|
import com.xkrs.utilsnew.DateTimeUtils;
|
||||||
import com.xkrs.utilsnew.WeiXinMessageUtils;
|
import com.xkrs.utilsnew.WeiXinMessageUtils;
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||||
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.scheduling.annotation.Scheduled;
|
||||||
@ -22,8 +20,8 @@ public class StaticScheduleTask {
|
|||||||
@Resource
|
@Resource
|
||||||
private FirePointSubscribeManager firePointSubscribeManager;
|
private FirePointSubscribeManager firePointSubscribeManager;
|
||||||
|
|
||||||
//每半小时更新一次订阅
|
//每小时更新一次订阅
|
||||||
@Scheduled(cron = "0 */30 * * * ?")
|
@Scheduled(cron = "0 0 * * * ?")
|
||||||
private void syncSubscribe() {
|
private void syncSubscribe() {
|
||||||
firePointSubscribeManager.autoSync();
|
firePointSubscribeManager.autoSync();
|
||||||
}
|
}
|
||||||
@ -38,11 +36,4 @@ public class StaticScheduleTask {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//每4秒钟更新一次订阅
|
|
||||||
@Scheduled(cron = "0/4 * * * * ?")
|
|
||||||
private void syncSubscribe6() {
|
|
||||||
firePointSubscribeManager.autoSync();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user