blade-dev.yaml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #spring配置
  2. spring:
  3. data:
  4. redis:
  5. ##redis 单机环境配置
  6. host: 118.195.196.59
  7. port: 6379
  8. password: xwkj2022@
  9. database: 0
  10. ssl:
  11. enabled: 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. #driver-class-name: dm.jdbc.driver.DmDriver
  22. #driver-class-name: com.yashandb.jdbc.Driver
  23. druid:
  24. # MySql、PostgreSQL、SqlServer、DaMeng校验
  25. validation-query: select 1
  26. # Oracle、YashanDB校验
  27. #oracle: true
  28. #validation-query: select 1 from dual
  29. #项目模块集中配置
  30. blade:
  31. #分布式锁配置
  32. lock:
  33. enabled: false
  34. address: redis://127.0.0.1:6379
  35. #多团队协作服务配置
  36. loadbalancer:
  37. #开启配置
  38. enabled: true
  39. #负载均衡优先调用的ip段
  40. prior-ip-pattern:
  41. - 192.168.0.*
  42. - 127.0.0.1
  43. #通用开发生产环境数据库地址(特殊情况可在对应的子工程里配置覆盖)
  44. datasource:
  45. dev:
  46. # MySql
  47. # url: jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
  48. # username: root
  49. # password: root
  50. # PostgreSQL
  51. url: jdbc:postgresql://118.195.196.59:5432/xwkjdb?currentSchema=cloud&socketTimeout=30000
  52. username: xwkj
  53. password: xwkj2022@
  54. # Oracle
  55. #url: jdbc:oracle:thin:@127.0.0.1:1521:orcl
  56. #username: BLADEX
  57. #password: BLADEX
  58. # SqlServer
  59. #url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=bladex
  60. #username: bladex
  61. #password: bladex
  62. # DaMeng
  63. #url: jdbc:dm://127.0.0.1:5236/BLADEX?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
  64. #username: BLADEX
  65. #password: BLADEX
  66. # YashanDB
  67. #url: jdbc:yasdb://127.0.0.1:1688/BLADEX
  68. #username: BLADEX
  69. #password: BLADEX