设定每天凌晨3点转cminmsg消息

This commit is contained in:
zhouxiunai
2018-12-30 22:51:42 +08:00
parent 695fff6b22
commit b20dd213d1
2 changed files with 3 additions and 3 deletions
@@ -25,7 +25,7 @@ import com.gzzn.omms.msgexchangeapi.entity.CminmsgHst;
*
*/
@Component
//@Async
@Async
public class CminmsgsHisScheduled {
@Autowired
@@ -36,7 +36,7 @@ public class CminmsgsHisScheduled {
private static Logger logger = LoggerFactory.getLogger(CminmsgsHisScheduled.class);
//@Scheduled(cron = "${scheduled.cminmsgHisCron}")
@Scheduled(cron = "${scheduled.cminmsgHisCron}")
public void scheduled()
{
logger.info("开始cminmsgs消息转历史..");
+1 -1
View File
@@ -65,7 +65,7 @@ scheduled:
maxPoolSize: 50
queueCapacity: 10
# 每日凌晨3:00 cminmsg 已处理数据转历史
cminmsgHisCron: 0 52 21 * * ?
cminmsgHisCron: 0 0 3 * * ?
#计入历史航班数据的条件
hstCondition:
#航班到达超过多久则成为历史航班数据(单位:秒)