feat(config): 分离quartz配置到独立文件
This commit is contained in:
@@ -115,34 +115,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:
|
||||
@@ -209,9 +181,6 @@ app:
|
||||
font-name:
|
||||
# 字体大小
|
||||
font-size: 25
|
||||
# 是否开启 swagger-ui
|
||||
swagger:
|
||||
enabled: true
|
||||
# 针对@Async
|
||||
async-task-pool:
|
||||
# 核心线程池大小
|
||||
@@ -243,4 +212,8 @@ logging:
|
||||
total-size-cap: 1GB
|
||||
level:
|
||||
# root: debug
|
||||
cn.odboy: info
|
||||
cn.odboy: info
|
||||
knife4j:
|
||||
enable: true
|
||||
setting:
|
||||
language: zh_cn
|
||||
@@ -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
|
||||
@@ -0,0 +1,30 @@
|
||||
# 分布式定时任务配置
|
||||
spring:
|
||||
# 数据库一定不能区分大小写
|
||||
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
|
||||
@@ -2,4 +2,5 @@ spring:
|
||||
profiles:
|
||||
# 激活的环境
|
||||
active: dev
|
||||
# active: dev,quartz
|
||||
|
||||
|
||||
@@ -55,8 +55,6 @@ spring:
|
||||
# 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
|
||||
username: root
|
||||
password: kd123456
|
||||
# 初始连接数,建议设置为与最小空闲连接数相同
|
||||
@@ -127,34 +125,6 @@ spring:
|
||||
max-idle: 20
|
||||
# 连接池中的最小空闲连接数
|
||||
min-idle: 1
|
||||
# 数据库一定不能区分大小写
|
||||
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:
|
||||
|
||||
@@ -52,9 +52,6 @@ spring:
|
||||
datasource:
|
||||
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
|
||||
username: root
|
||||
@@ -127,34 +124,6 @@ spring:
|
||||
max-idle: 20
|
||||
# 连接池中的最小空闲连接数
|
||||
min-idle: 1
|
||||
# 数据库一定不能区分大小写
|
||||
quartz:
|
||||
# 必需,指定使用 JDBC 存储
|
||||
job-store-type: jdbc
|
||||
properties:
|
||||
org:
|
||||
quartz:
|
||||
scheduler:
|
||||
# 必需,指定调度器实例的名称
|
||||
instanceName: cutejava
|
||||
# 必需,指定调度器实例的 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:
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
# 分布式定时任务配置
|
||||
spring:
|
||||
# 数据库一定不能区分大小写
|
||||
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
|
||||
@@ -2,4 +2,5 @@ spring:
|
||||
profiles:
|
||||
# 激活的环境
|
||||
active: dev
|
||||
# active: dev,quartz
|
||||
|
||||
|
||||
Reference in New Issue
Block a user