chore(dependencies): 更新项目依赖版本并优化配置
- 升级 mybatis-plus 版本从 3.5.14 到 3.5.15 - 升级 hutool 版本从 5.8.40 到 5.8.43 - 升级 jjwt 版本从 0.12.6 到 0.13.0 - 升级 mysql-connector-j 版本从 9.3.0 到 9.5.0 - 升级 aspectjrt 和 aspectjweaver 版本从 1.9.7 到 1.9.25.1 - 移除 commons-text 依赖并注释掉相关配置 - 将 jsch 依赖替换为 github.mwiede/jsch 版本 2.27.7 - 升级 oshi-core 版本从 6.6.5 到 6.9.2 - 升级 quartz 版本从 2.5.0 到 2.5.2 - 将 c3p0 替换为 HikariCP 连接池 - 升级 commons-net 版本从 3.11.1 到 3.12.0 - 移除 joda-time 依赖 - 移除 rhino 依赖 - 修改 redis 数据库配置从 10 到 2 - 优化 quartz 配置,增加数据源和线程池设置 - 修复 logback.xml 格式问题
This commit is contained in:
@@ -11,15 +11,34 @@ spring:
|
||||
# 必需,指定调度器实例的名称
|
||||
instanceName: cutejava
|
||||
# 必需,指定调度器实例的 ID
|
||||
instanceId: auto
|
||||
instanceId: AUTO
|
||||
threadPool:
|
||||
# 可选,线程池的线程数量,可以根据需要调整
|
||||
threadCount: 5
|
||||
# Scheduler使用的线程池名称,实现了ThreadPool接口,参考org.quartz.simpl.SimpleThreadPool
|
||||
class: org.quartz.simpl.SimpleThreadPool
|
||||
# 可选,并发个数(1~100)
|
||||
threadCount: 10
|
||||
# 可选,线程的优先级(1~10)
|
||||
threadPriority: 5
|
||||
# 可选,指定在线程池里面创建的线程是否是守护线程
|
||||
makeThreadsDaemons: false
|
||||
# 可选,线程上下文类加载器是否继承自初始线程的加载器
|
||||
threadsInheritContextClassLoaderOfInitializingThread: true
|
||||
dataSource:
|
||||
jobStoreDataSource:
|
||||
provider: hikaricp
|
||||
driver: com.mysql.cj.jdbc.Driver
|
||||
URL: jdbc:mysql://127.0.0.1:3306/cutejava?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
|
||||
user: root
|
||||
password: kd123456
|
||||
maxConnections: 10
|
||||
validationQuery: select 1
|
||||
jobStore:
|
||||
# 可选,如果你不需要集群,可以去掉
|
||||
isClustered: true
|
||||
# 可选,集群检查间隔时间,可以根据需要调整
|
||||
clusterCheckinInterval: 10000
|
||||
# 可选,分布式事务类
|
||||
# class: org.quartz.impl.jdbcjobstore.JobStoreTX
|
||||
# 必需,指定 JDBC 驱动代理类
|
||||
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
||||
# 可选,是否使用属性存储,可以根据需要调整
|
||||
@@ -27,4 +46,5 @@ spring:
|
||||
# 必需,指定表的前缀
|
||||
tablePrefix: qrtz_
|
||||
# 可选,指定误触发阈值,可以根据需要调整
|
||||
misfireThreshold: 60000
|
||||
misfireThreshold: 60000
|
||||
dataSource: jobStoreDataSource
|
||||
|
||||
@@ -31,9 +31,9 @@
|
||||
<fastjson2.version>2.0.59</fastjson2.version>
|
||||
<druid.version>1.2.27</druid.version>
|
||||
<commons-pool2.version>2.11.1</commons-pool2.version>
|
||||
<mybatis-plus.version>3.5.14</mybatis-plus.version>
|
||||
<hutool.version>5.8.41</hutool.version>
|
||||
<jjwt.version>0.12.6</jjwt.version>
|
||||
<mybatis-plus.version>3.5.15</mybatis-plus.version>
|
||||
<hutool.version>5.8.43</hutool.version>
|
||||
<jjwt.version>0.13.0</jjwt.version>
|
||||
<!-- oshi监控需要指定jna版本, 问题详见 https://github.com/oshi/oshi/issues/1040 -->
|
||||
<jna.version>5.8.0</jna.version>
|
||||
<mail.version>1.4.7</mail.version>
|
||||
@@ -41,19 +41,22 @@
|
||||
<freemarker.version>2.3.34</freemarker.version>
|
||||
<p6spy.version>3.9.1</p6spy.version>
|
||||
<knife4j.version>4.5.0</knife4j.version>
|
||||
<mysql.version>9.4.0</mysql.version>
|
||||
<ip2region.version>3.5.6</ip2region.version>
|
||||
<springaop.version>1.9.7</springaop.version>
|
||||
<mysql.version>9.5.0</mysql.version>
|
||||
<ip2region.version>3.5.7</ip2region.version>
|
||||
<!-- <springaop.version>1.9.7</springaop.version>-->
|
||||
<springaop.version>1.9.25.1</springaop.version>
|
||||
<captcha.version>1.6.2</captcha.version>
|
||||
<commons-text.version>1.13.0</commons-text.version>
|
||||
<!-- <commons-text.version>1.13.0</commons-text.version>-->
|
||||
<transmittable.version>2.14.5</transmittable.version>
|
||||
<ganymed-ssh2.version>build210</ganymed-ssh2.version>
|
||||
<jsch.version>0.1.55</jsch.version>
|
||||
<oshi.version>6.6.5</oshi.version>
|
||||
<quartz.version>2.5.0</quartz.version>
|
||||
<c3p0.version>0.10.1</c3p0.version>
|
||||
<commons-net.version>3.11.1</commons-net.version>
|
||||
<joda-time.version>2.12.7</joda-time.version>
|
||||
<!-- <oshi.version>6.6.5</oshi.version>-->
|
||||
<oshi.version>6.9.2</oshi.version>
|
||||
<!-- <quartz.version>2.5.0</quartz.version>-->
|
||||
<quartz.version>2.5.2</quartz.version>
|
||||
<!-- <c3p0.version>0.10.1</c3p0.version>-->
|
||||
<c3p0.version>0.11.2</c3p0.version>
|
||||
<!-- <commons-net.version>3.11.1</commons-net.version>-->
|
||||
<commons-net.version>3.12.0</commons-net.version>
|
||||
<pinyin.version>2.0.3.RELEASE</pinyin.version>
|
||||
<fastexcel.version>1.3.0</fastexcel.version>
|
||||
<rhino.version>1.8.0</rhino.version>
|
||||
@@ -172,6 +175,7 @@
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>3.20.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 监控sql日志 -->
|
||||
@@ -256,11 +260,11 @@
|
||||
<version>${captcha.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-text</artifactId>
|
||||
<version>${commons-text.version}</version>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.apache.commons</groupId>-->
|
||||
<!-- <artifactId>commons-text</artifactId>-->
|
||||
<!-- <version>${commons-text.version}</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- 提供增强的 InheritableThreadLocal, 即使用线程池组件也可以在线程之间传输值 -->
|
||||
<dependency>
|
||||
@@ -305,10 +309,15 @@
|
||||
<artifactId>ganymed-ssh2</artifactId>
|
||||
<version>${ganymed-ssh2.version}</version>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.jcraft</groupId>-->
|
||||
<!-- <artifactId>jsch</artifactId>-->
|
||||
<!-- <version>0.1.55</version>-->
|
||||
<!-- </dependency>-->
|
||||
<dependency>
|
||||
<groupId>com.jcraft</groupId>
|
||||
<groupId>com.github.mwiede</groupId>
|
||||
<artifactId>jsch</artifactId>
|
||||
<version>${jsch.version}</version>
|
||||
<version>2.27.7</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 获取系统信息 -->
|
||||
@@ -341,10 +350,16 @@
|
||||
<artifactId>quartz</artifactId>
|
||||
<version>${quartz.version}</version>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.mchange</groupId>-->
|
||||
<!-- <artifactId>c3p0</artifactId>-->
|
||||
<!-- <version>${c3p0.version}</version>-->
|
||||
<!-- </dependency>-->
|
||||
<dependency>
|
||||
<groupId>com.mchange</groupId>
|
||||
<artifactId>c3p0</artifactId>
|
||||
<version>${c3p0.version}</version>
|
||||
<groupId>com.zaxxer</groupId>
|
||||
<artifactId>HikariCP</artifactId>
|
||||
<version>7.0.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- CIDR解析 -->
|
||||
@@ -354,12 +369,6 @@
|
||||
<version>${commons-net.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>joda-time</groupId>
|
||||
<artifactId>joda-time</artifactId>
|
||||
<version>${joda-time.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 拼音库 -->
|
||||
<dependency>
|
||||
<groupId>io.github.biezhi</groupId>
|
||||
@@ -377,11 +386,6 @@
|
||||
</dependency>
|
||||
|
||||
<!-- Nashorn被弃用 -->
|
||||
<dependency>
|
||||
<groupId>org.mozilla</groupId>
|
||||
<artifactId>rhino</artifactId>
|
||||
<version>${rhino.version}</version>
|
||||
</dependency>
|
||||
<!-- Expression expression = new Expression("2 + 3 * 4");-->
|
||||
<!-- EvaluationValue result = expression.evaluate();-->
|
||||
<!-- System.out.println(result.getNumberValue()); // 输出 14-->
|
||||
|
||||
Reference in New Issue
Block a user