From a65d4b37897c3ed15ff5f915b7136ce14392350b Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 10 三月 2025 13:26:29 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ansteel-biz/src/main/java/com/iailab/module/ansteel/job/utils/ScheduleJob.java         |    2 +-
 ansteel-biz/src/main/resources/application-test.yaml                                   |   10 ++++++++++
 ansteel-biz/src/main/java/com/iailab/module/ansteel/job/task/RunPredictModuleTask.java |    4 ----
 3 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/ansteel-biz/src/main/java/com/iailab/module/ansteel/job/task/RunPredictModuleTask.java b/ansteel-biz/src/main/java/com/iailab/module/ansteel/job/task/RunPredictModuleTask.java
index 4debbd0..ed6bdaf 100644
--- a/ansteel-biz/src/main/java/com/iailab/module/ansteel/job/task/RunPredictModuleTask.java
+++ b/ansteel-biz/src/main/java/com/iailab/module/ansteel/job/task/RunPredictModuleTask.java
@@ -5,7 +5,6 @@
 import org.apache.commons.lang3.StringUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
-import org.springframework.amqp.rabbit.core.RabbitTemplate;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
@@ -20,9 +19,6 @@
 
     @Autowired
     private MdkApi mdkApi;
-
-    @Autowired
-    private RabbitTemplate rabbitTemplate;
 
     @Override
     public void run(String params) {
diff --git a/ansteel-biz/src/main/java/com/iailab/module/ansteel/job/utils/ScheduleJob.java b/ansteel-biz/src/main/java/com/iailab/module/ansteel/job/utils/ScheduleJob.java
index 684be57..2b1f7bb 100644
--- a/ansteel-biz/src/main/java/com/iailab/module/ansteel/job/utils/ScheduleJob.java
+++ b/ansteel-biz/src/main/java/com/iailab/module/ansteel/job/utils/ScheduleJob.java
@@ -2,11 +2,11 @@
 
 import com.iailab.framework.common.constant.Constant;
 import com.iailab.framework.common.exception.ExceptionUtils;
-import com.iailab.framework.common.util.spring.SpringContextUtils;
 import com.iailab.framework.tenant.core.context.TenantContextHolder;
 import com.iailab.module.ansteel.job.entity.ScheduleJobEntity;
 import com.iailab.module.ansteel.job.entity.ScheduleJobLogEntity;
 import com.iailab.module.ansteel.job.service.ScheduleJobLogService;
+import com.iailab.module.ansteel.util.SpringContextUtils;
 import org.quartz.DisallowConcurrentExecution;
 import org.quartz.JobExecutionContext;
 import org.slf4j.Logger;
diff --git a/ansteel-biz/src/main/resources/application-test.yaml b/ansteel-biz/src/main/resources/application-test.yaml
index bb8e6a6..2d0b00b 100644
--- a/ansteel-biz/src/main/resources/application-test.yaml
+++ b/ansteel-biz/src/main/resources/application-test.yaml
@@ -51,6 +51,16 @@
     database: 10 # 数据库索引
     password: 123456 # 密码,建议生产环境开启
 
+--- #################### 监控相关配置 ####################
+
+# Actuator 监控端点的配置项
+management:
+  endpoints:
+    web:
+      base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
+      exposure:
+        include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
+
 --- #################### 平台相关配置 ####################
 
 # 平台配置项,设置当前项目所有自定义的配置

--
Gitblit v1.9.3