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
|
||||
|
||||
Reference in New Issue
Block a user