| | |
| | | package cn.lihu.jh.module.ecg.config; |
| | | |
| | | import cn.lihu.jh.module.ecg.Utils; |
| | | import cn.lihu.jh.module.ecg.service.config.EcgConfigService; |
| | | import cn.lihu.jh.module.ecg.service.queue.QueueService; |
| | | import cn.lihu.jh.module.infra.api.config.ConfigApi; |
| | | import org.springframework.boot.context.event.ApplicationStartedEvent; |
| | |
| | | private ConfigApi configApi; |
| | | |
| | | @Resource |
| | | private QueueService queueService; |
| | | private EcgConfigService ecgConfigService; |
| | | |
| | | @Resource |
| | | QueueService queueService; |
| | | |
| | | @EventListener |
| | | public void onApplicationEvent(ApplicationStartedEvent event) { |
| | |
| | | queueService.startBiz(); |
| | | } |
| | | |
| | | queueService.resetScheduler(); |
| | | ecgConfigService.resetScheduler(); |
| | | } |
| | | } |