为后端服务增加 MySQL 与 PostgreSQL 的表结构、初始化数据和独立 Liquibase 入口。\nAdd database schemas, seed data, and isolated Liquibase changelog entrypoints for backend services.
66 lines
3.0 KiB
YAML
66 lines
3.0 KiB
YAML
datasource:
|
|
system-master:
|
|
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
|
# PostgreSQL 环境请在环境配置中覆盖 driver-class-name 和 url
|
|
# driver-class-name: org.postgresql.Driver
|
|
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能
|
|
url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
|
username: root
|
|
password: password
|
|
gen:
|
|
url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
|
username: root
|
|
password: password
|
|
job:
|
|
url: jdbc:mysql://localhost:3306/ry-job?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
|
username: root
|
|
password: password
|
|
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
|
|
workflow:
|
|
url: jdbc:mysql://localhost:3306/ry-workflow?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
|
username: root
|
|
password: password
|
|
# 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
|
|
|
|
mybatis-plus:
|
|
sql-log:
|
|
# 完整 SQL 输出开关
|
|
enabled: true
|
|
# 输出方式,可选 console、log
|
|
output: console
|
|
|
|
spring:
|
|
datasource:
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
# 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
|
|
dynamic:
|
|
# 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭
|
|
seata: ${seata.enabled}
|
|
# 严格模式 匹配不到数据源则报错
|
|
strict: true
|
|
hikari:
|
|
# 最大连接池数量
|
|
maxPoolSize: 20
|
|
# 最小空闲线程数量
|
|
minIdle: 10
|
|
# 配置获取连接等待超时的时间
|
|
connectionTimeout: 30000
|
|
# 校验超时时间
|
|
validationTimeout: 5000
|
|
# 空闲连接存活最大时间,默认10分钟
|
|
idleTimeout: 600000
|
|
# 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
|
|
maxLifetime: 1800000
|
|
# 多久检查一次连接的活性
|
|
keepaliveTime: 30000
|