chore(deps): 移除达梦数据库 JDBC 驱动依赖并优化配置
- 删除 DmJdbcDriver8.jar 驱动文件 - 排除 QuartzAutoConfiguration 自动配置 - 统一规范 POM 文件格式和依赖管理 - 优化项目构建配置
This commit is contained in:
@@ -30,14 +30,6 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
</dependency>
|
||||
<!-- 达梦8数据库驱动 -->
|
||||
<dependency>
|
||||
<groupId>com.dameng</groupId>
|
||||
<artifactId>DmJdbcDriver8</artifactId>
|
||||
<version>${dm.jdbc.version}</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/../../lib/DmJdbcDriver8.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
|
||||
@@ -140,13 +140,11 @@
|
||||
</dependency>
|
||||
|
||||
<!-- 数据库驱动 -->
|
||||
<!-- 达梦8数据库驱动 -->
|
||||
<!-- 达梦数据库-->
|
||||
<dependency>
|
||||
<groupId>com.dameng</groupId>
|
||||
<artifactId>DmJdbcDriver8</artifactId>
|
||||
<version>${dm.jdbc.version}</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/../lib/DmJdbcDriver8.jar</systemPath>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<!-- sqlserver-->
|
||||
<dependency>
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ import java.util.Map;
|
||||
* @Date: 2019-01-02
|
||||
* @Version:V1.0
|
||||
*/
|
||||
@RestController
|
||||
//@RestController
|
||||
@RequestMapping("/sys/quartzJob")
|
||||
@Slf4j
|
||||
@Tag(name = "定时任务接口")
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import java.util.List;
|
||||
* @Version: V1.1
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
//@Service
|
||||
public class QuartzJobServiceImpl extends ServiceImpl<QuartzJobMapper, QuartzJob> implements IQuartzJobService {
|
||||
/**
|
||||
* 立即执行的任务分组
|
||||
|
||||
+2
-1
@@ -4,6 +4,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
@@ -22,7 +23,7 @@ import java.net.UnknownHostException;
|
||||
* @date: 2022/4/21 10:55
|
||||
*/
|
||||
@Slf4j
|
||||
@SpringBootApplication(scanBasePackages = {"com.renkang", "org.jeecg"})
|
||||
@SpringBootApplication(scanBasePackages = {"com.renkang", "org.jeecg"},exclude = QuartzAutoConfiguration.class)
|
||||
@EnableFeignClients(basePackages = {"org.jeecg", "com.renkang"})
|
||||
@EnableScheduling
|
||||
public class JeecgSystemCloudApplication extends SpringBootServletInitializer {
|
||||
|
||||
Binary file not shown.
@@ -47,7 +47,7 @@
|
||||
<oracle-database.version>21.13.0.0</oracle-database.version>
|
||||
<mssql-jdbc.version>12.6.1.jre8</mssql-jdbc.version>
|
||||
<!-- 达梦8数据库驱动版本 -->
|
||||
<dm.jdbc.version>8.1.0</dm.jdbc.version>
|
||||
<dm8.version>8.1.4.181</dm8.version>
|
||||
<postgresql.version>42.6.2</postgresql.version>
|
||||
|
||||
<!-- 持久层 -->
|
||||
@@ -643,6 +643,12 @@
|
||||
<artifactId>knife4j-openapi3-spring-boot-starter</artifactId>
|
||||
<version>${knife4j-spring-boot-starter.version}</version>
|
||||
</dependency>
|
||||
<!-- Source: https://mvnrepository.com/artifact/com.dameng/DmJdbcDriver8 -->
|
||||
<dependency>
|
||||
<groupId>com.dameng</groupId>
|
||||
<artifactId>DmJdbcDriver8</artifactId>
|
||||
<version>${dm8.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
@@ -696,7 +702,7 @@
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
<excludes>
|
||||
<exclude>.env</exclude>
|
||||
<!--<exclude>.env</exclude>-->
|
||||
<exclude>rebel.xml</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
|
||||
Reference in New Issue
Block a user