blade-prod.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #spring配置
  2. spring:
  3. data:
  4. redis:
  5. ##redis 单机环境配置
  6. ##将docker脚本部署的redis服务映射为宿主机ip
  7. ##生产环境推荐使用阿里云高可用redis服务并设置密码
  8. host: 192.168.0.188
  9. port: 3379
  10. password:
  11. database: 0
  12. ssl:
  13. enabled: false
  14. ##redis 集群环境配置
  15. #cluster:
  16. # nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003
  17. # commandTimeout: 5000
  18. datasource:
  19. driver-class-name: com.mysql.cj.jdbc.Driver
  20. #driver-class-name: org.postgresql.Driver
  21. #driver-class-name: oracle.jdbc.OracleDriver
  22. #driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  23. #driver-class-name: dm.jdbc.driver.DmDriver
  24. #driver-class-name: com.yashandb.jdbc.Driver
  25. druid:
  26. # MySql、PostgreSQL、SqlServer、DaMeng校验
  27. validation-query: select 1
  28. # Oracle、YashanDB校验
  29. #oracle: true
  30. #validation-query: select 1 from dual
  31. #项目模块集中配置
  32. blade:
  33. #分布式锁配置
  34. lock:
  35. ##是否启用分布式锁
  36. enabled: false
  37. ##将docker脚本部署的redis服务映射为宿主机ip
  38. ##生产环境推荐使用阿里云高可用redis服务并设置密码
  39. address: redis://192.168.0.188:3379
  40. #通用开发生产环境数据库地址(特殊情况可在对应的子工程里配置覆盖)
  41. datasource:
  42. prod:
  43. url: jdbc:mysql://192.168.0.188:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
  44. username: root
  45. password: root