From 4973284488a6fc5c93cc234307052e2ee897fcb7 Mon Sep 17 00:00:00 2001
From: 1 <1>
Date: 星期二, 10 三月 2026 08:06:09 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/task/ExceptionNoticeScheduler.java |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/asrs/task/ExceptionNoticeScheduler.java b/src/main/java/com/zy/asrs/task/ExceptionNoticeScheduler.java
index 06a973e..eeb8327 100644
--- a/src/main/java/com/zy/asrs/task/ExceptionNoticeScheduler.java
+++ b/src/main/java/com/zy/asrs/task/ExceptionNoticeScheduler.java
@@ -1,12 +1,17 @@
 package com.zy.asrs.task;
 
 import com.zy.asrs.task.core.ReturnT;
+import com.zy.asrs.task.handler.ExceptionNoticeHandler;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
 
 import static org.reflections.Reflections.log;
-
+@Component
 public class ExceptionNoticeScheduler {
-    @Scheduled(cron = "0/1 * * * * ? ")
+    @Autowired
+    private ExceptionNoticeHandler exceptionNoticeHandler;
+    @Scheduled(cron = "0/5 * * * * ? ")
     private void execute(){
         ReturnT<String> returnT = exceptionNoticeHandler.start();
         if (!returnT.isSuccess()) {

--
Gitblit v1.9.1