blade-test.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #spring配置
  2. spring:
  3. redis:
  4. ##redis 单机环境配置
  5. ##将docker脚本部署的redis服务映射为宿主机ip
  6. host: 192.168.0.157
  7. port: 3379
  8. password:
  9. database: 0
  10. ssl: false
  11. ##redis 集群环境配置
  12. #cluster:
  13. # nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003
  14. # commandTimeout: 5000
  15. datasource:
  16. driver-class-name: com.mysql.cj.jdbc.Driver
  17. #driver-class-name: org.postgresql.Driver
  18. #driver-class-name: oracle.jdbc.OracleDriver
  19. #driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  20. druid:
  21. # MySql、PostgreSQL、SqlServer校验
  22. validation-query: select 1
  23. # Oracle校验
  24. #validation-query: select 1 from dual
  25. #项目模块集中配置
  26. blade:
  27. #分布式锁配置
  28. lock:
  29. ##是否启用分布式锁
  30. enabled: false
  31. ##将docker脚本部署的redis服务映射为宿主机ip
  32. address: redis://192.168.0.157:3379
  33. #通用开发生产环境数据库地址(特殊情况可在对应的子工程里配置覆盖)
  34. datasource:
  35. test:
  36. 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
  37. username: root
  38. password: root