blade-dev.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #spring配置
  2. spring:
  3. redis:
  4. ##redis 单机环境配置
  5. host: 127.0.0.1
  6. port: 6379
  7. password:
  8. database: 0
  9. ssl: false
  10. ##redis 集群环境配置
  11. #cluster:
  12. # nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003
  13. # commandTimeout: 5000
  14. datasource:
  15. driver-class-name: com.mysql.cj.jdbc.Driver
  16. #driver-class-name: org.postgresql.Driver
  17. #driver-class-name: oracle.jdbc.OracleDriver
  18. #driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  19. #driver-class-name: dm.jdbc.driver.DmDriver
  20. druid:
  21. # MySql、PostgreSQL、SqlServer、DaMeng校验
  22. validation-query: select 1
  23. # Oracle校验
  24. #validation-query: select 1 from dual
  25. #项目模块集中配置
  26. blade:
  27. #分布式锁配置
  28. lock:
  29. enabled: false
  30. address: redis://127.0.0.1:6379
  31. #多团队协作服务配置
  32. ribbon:
  33. rule:
  34. #开启配置
  35. enabled: true
  36. #负载均衡优先调用的ip段
  37. prior-ip-pattern:
  38. - 192.168.0.*
  39. - 127.0.0.1
  40. #通用开发生产环境数据库地址(特殊情况可在对应的子工程里配置覆盖)
  41. datasource:
  42. dev:
  43. # MySql
  44. url: jdbc:mysql://192.168.0.130:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
  45. username: bladex
  46. password: 68LzdwJ6p7RAGijK
  47. # PostgreSQL
  48. #url: jdbc:postgresql://127.0.0.1:5432/bladex
  49. #username: postgres
  50. #password: 123456
  51. # Oracle
  52. #url: jdbc:oracle:thin:@127.0.0.1:1521:orcl
  53. #username: BLADEX
  54. #password: BLADEX
  55. # SqlServer
  56. #url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=bladex
  57. #username: bladex
  58. #password: bladex
  59. # DaMeng
  60. #url: jdbc:dm://127.0.0.1:5236/BLADEX?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
  61. #username: BLADEX
  62. #password: BLADEX