2022-01-10 00:48:27 +08:00
|
|
|
datasource:
|
|
|
|
|
system-master:
|
|
|
|
|
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
2026-08-30 00:17:51 +08:00
|
|
|
# PostgreSQL 环境请在环境配置中覆盖 driver-class-name 和 url
|
|
|
|
|
# driver-class-name: org.postgresql.Driver
|
2022-01-10 00:48:27 +08:00
|
|
|
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能
|
2023-08-04 17:05:47 +08:00
|
|
|
url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
2022-01-10 00:48:27 +08:00
|
|
|
username: root
|
|
|
|
|
password: password
|
|
|
|
|
gen:
|
2023-08-04 17:05:47 +08:00
|
|
|
url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
2022-01-10 00:48:27 +08:00
|
|
|
username: root
|
|
|
|
|
password: password
|
2022-02-17 14:03:16 +08:00
|
|
|
job:
|
2023-08-04 17:05:47 +08:00
|
|
|
url: jdbc:mysql://localhost:3306/ry-job?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
2022-01-10 11:46:56 +08:00
|
|
|
username: root
|
|
|
|
|
password: password
|
2026-06-02 14:11:32 +08:00
|
|
|
ai:
|
|
|
|
|
url: jdbc:mysql://localhost:3306/ry-ai?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
|
|
|
|
username: root
|
|
|
|
|
password: password
|
2024-06-03 07:11:46 +00:00
|
|
|
workflow:
|
2024-06-03 16:46:51 +08:00
|
|
|
url: jdbc:mysql://localhost:3306/ry-workflow?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
2024-06-03 07:11:46 +00:00
|
|
|
username: root
|
|
|
|
|
password: password
|
2022-12-27 16:17:16 +08:00
|
|
|
# system-oracle:
|
|
|
|
|
# url: jdbc:oracle:thin:@//localhost:1521/XE
|
|
|
|
|
# username: ROOT
|
|
|
|
|
# password: password
|
|
|
|
|
# system-postgres:
|
|
|
|
|
# url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
|
|
|
|
|
# username: root
|
|
|
|
|
# password: password
|
2022-01-10 00:48:27 +08:00
|
|
|
|
2026-06-17 10:51:24 +08:00
|
|
|
mybatis-plus:
|
|
|
|
|
sql-log:
|
|
|
|
|
# 完整 SQL 输出开关
|
|
|
|
|
enabled: true
|
|
|
|
|
# 输出方式,可选 console、log
|
|
|
|
|
output: console
|
|
|
|
|
|
2022-01-10 00:48:27 +08:00
|
|
|
spring:
|
|
|
|
|
datasource:
|
2022-11-08 00:36:24 +08:00
|
|
|
type: com.zaxxer.hikari.HikariDataSource
|
2022-01-10 00:48:27 +08:00
|
|
|
# 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
|
|
|
|
|
dynamic:
|
|
|
|
|
# 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭
|
2023-06-15 13:26:54 +08:00
|
|
|
seata: ${seata.enabled}
|
2022-04-08 11:43:21 +08:00
|
|
|
# 严格模式 匹配不到数据源则报错
|
|
|
|
|
strict: true
|
2022-11-08 00:36:24 +08:00
|
|
|
hikari:
|
|
|
|
|
# 最大连接池数量
|
|
|
|
|
maxPoolSize: 20
|
|
|
|
|
# 最小空闲线程数量
|
|
|
|
|
minIdle: 10
|
|
|
|
|
# 配置获取连接等待超时的时间
|
2023-02-01 17:36:27 +08:00
|
|
|
connectionTimeout: 30000
|
2022-11-08 00:36:24 +08:00
|
|
|
# 校验超时时间
|
|
|
|
|
validationTimeout: 5000
|
|
|
|
|
# 空闲连接存活最大时间,默认10分钟
|
2023-02-01 17:36:27 +08:00
|
|
|
idleTimeout: 600000
|
2022-11-08 00:36:24 +08:00
|
|
|
# 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
|
2023-02-08 10:39:53 +08:00
|
|
|
maxLifetime: 1800000
|
2023-02-09 12:39:27 +08:00
|
|
|
# 多久检查一次连接的活性
|
|
|
|
|
keepaliveTime: 30000
|