| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # 数据源占位符定义(供各服务配置文件引用)
- datasource:
- system-master:
- url: jdbc:mysql://192.168.1.123:3306/yoe_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
- username: youyida
- password: aapYBDthby
- job:
- url: jdbc:mysql://192.168.1.123:3306/yoe_job?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
- username: youyida
- password: aapYBDthby
- gen:
- url: jdbc:mysql://192.168.1.123:3306/yoe_gen?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
- username: youyida
- password: aapYBDthby
- workflow:
- url: jdbc:mysql://192.168.1.123:3306/yoe_workflow?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
- username: youyida
- password: aapYBDthby
- customer:
- url: jdbc:mysql://192.168.1.123:3306/yoe_customer_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
- username: youyida
- password: aapYBDthby
- product:
- url: jdbc:mysql://192.168.1.123:3306/yoe_product_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
- username: youyida
- password: aapYBDthby
- spring:
- datasource:
- type: com.zaxxer.hikari.HikariDataSource
- # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
- dynamic:
- # 性能分析插件(有性能损耗 不建议生产环境使用)
- p6spy: true
- # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭
- seata: ${seata.enabled}
- # 严格模式 匹配不到数据源则报错
- strict: true
- hikari:
- # 最大连接池数量
- maxPoolSize: 20
- # 最小空闲线程数量
- minIdle: 10
- # 配置获取连接等待超时的时间
- connectionTimeout: 30000
- # 校验超时时间
- validationTimeout: 5000
- # 空闲连接存活最大时间,默认10分钟
- idleTimeout: 600000
- # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
- maxLifetime: 1800000
- # 多久检查一次连接的活性
- keepaliveTime: 30000
|