From 10d5e6ca4a3c23b52fb9a29379548bd7353a4598 Mon Sep 17 00:00:00 2001
From: hejiayang <296714699@qq.com>
Date: Mon, 9 Mar 2026 09:24:49 +0800
Subject: [PATCH] =?UTF-8?q?```=20feat:=20=E6=B7=BB=E5=8A=A0MySQL=E9=A9=B1?=
=?UTF-8?q?=E5=8A=A8=E4=BE=9D=E8=B5=96=E6=94=AF=E6=8C=81Spring=20Batch?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
添加了MySQL连接器依赖以支持Spring Batch数据源兼容性,同时排除了Quartz自动配置避免定时任务冲突。```
---
health-watch/health-watch-biz/pom.xml | 6 ++++++
.../main/java/com/renkang/HealthWatchCloudApplication.java | 3 ++-
pom.xml | 7 +++++++
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/health-watch/health-watch-biz/pom.xml b/health-watch/health-watch-biz/pom.xml
index f9e4910..e877f8b 100644
--- a/health-watch/health-watch-biz/pom.xml
+++ b/health-watch/health-watch-biz/pom.xml
@@ -56,6 +56,12 @@
com.renkang
font-resources
+
+
+ mysql
+ mysql-connector-java
+ runtime
+
diff --git a/health-watch/health-watch-start/src/main/java/com/renkang/HealthWatchCloudApplication.java b/health-watch/health-watch-start/src/main/java/com/renkang/HealthWatchCloudApplication.java
index 718443f..9d73ae0 100644
--- a/health-watch/health-watch-start/src/main/java/com/renkang/HealthWatchCloudApplication.java
+++ b/health-watch/health-watch-start/src/main/java/com/renkang/HealthWatchCloudApplication.java
@@ -2,11 +2,12 @@ package com.renkang;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
@EnableAsync
-@SpringBootApplication(scanBasePackages = {"com.renkang", "org.jeecg"})
+@SpringBootApplication(scanBasePackages = {"com.renkang", "org.jeecg"},exclude = QuartzAutoConfiguration.class)
@EnableFeignClients(basePackages = {"com.renkang", "org.jeecg"})
public class HealthWatchCloudApplication {
diff --git a/pom.xml b/pom.xml
index a9f455b..9b06e87 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,6 +48,7 @@
12.6.1.jre8
8.1.4.181
+ 8.0.33
42.6.2
@@ -649,6 +650,12 @@
DmJdbcDriver8
${dm8.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.version}
+