datasource.yml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # 数据源占位符定义(供各服务配置文件引用)
  2. datasource:
  3. system-master:
  4. 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
  5. username: youyida
  6. password: aapYBDthby
  7. job:
  8. 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
  9. username: youyida
  10. password: aapYBDthby
  11. gen:
  12. 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
  13. username: youyida
  14. password: aapYBDthby
  15. workflow:
  16. 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
  17. username: youyida
  18. password: aapYBDthby
  19. customer:
  20. 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
  21. username: youyida
  22. password: aapYBDthby
  23. product:
  24. 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
  25. username: youyida
  26. password: aapYBDthby
  27. spring:
  28. datasource:
  29. type: com.zaxxer.hikari.HikariDataSource
  30. # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
  31. dynamic:
  32. # 性能分析插件(有性能损耗 不建议生产环境使用)
  33. p6spy: true
  34. # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭
  35. seata: ${seata.enabled}
  36. # 严格模式 匹配不到数据源则报错
  37. strict: true
  38. hikari:
  39. # 最大连接池数量
  40. maxPoolSize: 20
  41. # 最小空闲线程数量
  42. minIdle: 10
  43. # 配置获取连接等待超时的时间
  44. connectionTimeout: 30000
  45. # 校验超时时间
  46. validationTimeout: 5000
  47. # 空闲连接存活最大时间,默认10分钟
  48. idleTimeout: 600000
  49. # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
  50. maxLifetime: 1800000
  51. # 多久检查一次连接的活性
  52. keepaliveTime: 30000