feat(config): 分离quartz配置到独立文件

This commit is contained in:
2025-10-31 10:34:12 +08:00
parent 6d28669921
commit 55f9846b17
8 changed files with 74 additions and 129 deletions
@@ -70,10 +70,8 @@ spring:
druid:
db-type: com.alibaba.druid.pool.DruidDataSource
# sql监控
driverClassName: com.p6spy.engine.spy.P6SpyDriver
url: jdbc:p6spy:mysql://192.168.100.128:23306/cutejava?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
# driverClassName: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://192.168.100.128:23306/cutejava?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.100.128:23306/cutejava?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: kd123456
# 初始连接数,建议设置为与最小空闲连接数相同
@@ -126,34 +124,6 @@ spring:
config:
multi-statement-allow: true
aop-patterns: "cn.odboy.mapper.*,cn.odboy.service.*,cn.odboy.*.mapper.*,cn.odboy.*.service.*"
# 数据库一定不能区分大小写
quartz:
# 必需,指定使用 JDBC 存储
job-store-type: jdbc
properties:
org:
quartz:
scheduler:
# 必需,指定调度器实例的名称
instanceName: ${spring.application.name}
# 必需,指定调度器实例的 ID
instanceId: auto
threadPool:
# 可选,线程池的线程数量,可以根据需要调整
threadCount: 5
jobStore:
# 可选,如果你不需要集群,可以去掉
isClustered: true
# 可选,集群检查间隔时间,可以根据需要调整
clusterCheckinInterval: 10000
# 必需,指定 JDBC 驱动代理类
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
# 可选,是否使用属性存储,可以根据需要调整
useProperties: false
# 必需,指定表的前缀
tablePrefix: qrtz_
# 可选,指定误触发阈值,可以根据需要调整
misfireThreshold: 60000
# 集成mybatis-plus
mybatis-plus:
configuration:
@@ -220,9 +190,6 @@ app:
font-name:
# 字体大小
font-size: 25
# 是否开启 swagger-ui
swagger:
enabled: false
# 针对@Async
async-task-pool:
# 核心线程池大小
@@ -254,4 +221,8 @@ logging:
total-size-cap: 1GB
level:
# root: debug
cn.odboy: info
cn.odboy: info
knife4j:
enable: false
setting:
language: zh_cn