blade-prod.yaml 1.5 KB

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