feat: 添加MySQL驱动依赖支持Spring Batch功能

添加了MySQL连接器依赖以支持Spring Batch数据源兼容性,同时排除了Quartz自动配置避免定时任务冲突。```
This commit is contained in:
hejiayang
2026-03-09 09:24:49 +08:00
parent d98884ea4c
commit 10d5e6ca4a
3 changed files with 15 additions and 1 deletions
+6
View File
@@ -56,6 +56,12 @@
<groupId>com.renkang</groupId>
<artifactId>font-resources</artifactId>
</dependency>
<!-- MySQL 驱动 (用于 Spring Batch 数据源兼容) -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
@@ -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 {
+7
View File
@@ -48,6 +48,7 @@
<mssql-jdbc.version>12.6.1.jre8</mssql-jdbc.version>
<!-- 达梦8数据库驱动版本 -->
<dm8.version>8.1.4.181</dm8.version>
<mysql.version>8.0.33</mysql.version>
<postgresql.version>42.6.2</postgresql.version>
<!-- 持久层 -->
@@ -649,6 +650,12 @@
<artifactId>DmJdbcDriver8</artifactId>
<version>${dm8.version}</version>
</dependency>
<!-- MySQL 数据库驱动 (用于 Spring Batch 等需要 MySQL 的场景) -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
</dependencies>
</dependencyManagement>