application-druid.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. ruoyi:
  2. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  3. profile: D:/soft/sh-models/uploadPath
  4. sys:
  5. gateway:
  6. url: http://localhost:8081
  7. # 数据源配置
  8. spring:
  9. datasource:
  10. type: com.alibaba.druid.pool.DruidDataSource
  11. driverClassName: com.mysql.cj.jdbc.Driver
  12. druid:
  13. # 主库数据源
  14. master:
  15. url: jdbc:mysql://39.98.38.2:13306/sh_project?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  16. username: shmodel
  17. password: shmodel#$0526
  18. # 从库数据源
  19. slave:
  20. # 从数据源开关/默认关闭
  21. enabled: false
  22. url: jdbc:mysql://39.98.38.2:13306/sh_sh_model?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  23. username: zj-hhst
  24. password: ENC(10zA4Za2Kj2pvnRnLDYCWWkP71Dcsavw)
  25. # 初始连接数
  26. initialSize: 5
  27. # 最小连接池数量
  28. minIdle: 10
  29. # 最大连接池数量
  30. maxActive: 20
  31. # 配置获取连接等待超时的时间
  32. maxWait: 60000
  33. # 配置连接超时时间
  34. connectTimeout: 30000
  35. # 配置网络超时时间
  36. socketTimeout: 60000
  37. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  38. timeBetweenEvictionRunsMillis: 60000
  39. # 配置一个连接在池中最小生存的时间,单位是毫秒
  40. minEvictableIdleTimeMillis: 300000
  41. # 配置一个连接在池中最大生存的时间,单位是毫秒
  42. maxEvictableIdleTimeMillis: 900000
  43. # 配置检测连接是否有效
  44. validationQuery: SELECT 1 FROM DUAL
  45. testWhileIdle: true
  46. testOnBorrow: false
  47. testOnReturn: false
  48. webStatFilter:
  49. enabled: true
  50. statViewServlet:
  51. enabled: true
  52. # 设置白名单,不填则允许所有访问
  53. allow:
  54. url-pattern: /druid/*
  55. # 控制台管理用户名和密码
  56. login-username: ruoyi
  57. login-password: 123456
  58. filter:
  59. stat:
  60. enabled: true
  61. # 慢SQL记录
  62. log-slow-sql: true
  63. slow-sql-millis: 1000
  64. merge-sql: true
  65. wall:
  66. config:
  67. multi-statement-allow: true
  68. # redis 配置
  69. redis:
  70. # 地址
  71. host: 39.98.38.2
  72. # 端口,默认为6379
  73. port: 16379
  74. # 数据库索引
  75. database: 5
  76. # 密码
  77. password: 123456
  78. # 连接超时时间
  79. timeout: 20s
  80. lettuce:
  81. pool:
  82. # 连接池中的最小空闲连接
  83. min-idle: 0
  84. # 连接池中的最大空闲连接
  85. max-idle: 8
  86. # 连接池的最大数据库连接数
  87. max-active: 8
  88. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  89. max-wait: -1ms
  90. snail-job:
  91. server:
  92. port: 17888
  93. host: 127.0.0.1
  94. namespace: M18Z4tm7bKJmswwcLMlGgzLUEn5I2_A8
  95. group: test_sh_group
  96. token: SJ_bM5DeeFSAV6ltYwqqCKoA7v5HuwGH5Hr
  97. golden:
  98. plugin:
  99. mode: deployment
  100. enabled: true
  101. work-dir: D:/Workspaces/sh-model-platform/plugins
  102. path: D:/Workspaces/sh-model-platform/plugins
  103. docker:
  104. host: tcp://localhost:2375
  105. registry:
  106. url: