application-test.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # 数据源配置
  2. spring:
  3. cloud:
  4. nacos:
  5. discovery:
  6. server-addr: 120.46.59.90:18848 # Nacos服务器地址
  7. username: nacos
  8. password: nacos
  9. config:
  10. enabled: true
  11. application:
  12. name: ezhizao-yzbh-sys
  13. # redis 配置
  14. redis:
  15. # 地址
  16. host: 120.46.59.90
  17. # 端口,默认为6379
  18. port: 16379
  19. # 数据库索引
  20. database: 8
  21. # 密码
  22. password: ezhizao.cn123456
  23. # 连接超时时间
  24. timeout: 10s
  25. lettuce:
  26. pool:
  27. # 连接池中的最小空闲连接
  28. min-idle: 0
  29. # 连接池中的最大空闲连接
  30. max-idle: 8
  31. # 连接池的最大数据库连接数
  32. max-active: 8
  33. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  34. max-wait: -1ms
  35. datasource:
  36. type: com.alibaba.druid.pool.DruidDataSource
  37. driverClassName: com.mysql.cj.jdbc.Driver
  38. druid:
  39. # 主库数据源
  40. master:
  41. url: jdbc:mysql://120.46.59.90:3306/ezhizao_yzbh_v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8&connectTimeout=360000&socketTimeout=360000
  42. username: root
  43. password: ezhizao.cn123456
  44. # url: jdbc:mysql://localhost:3306/ezhizao_yzbh_v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
  45. # username: root
  46. # password: 123456
  47. # 从库数据源
  48. # slave:
  49. # # 从数据源开关/默认关闭
  50. # enabled: true
  51. # url: jdbc:mysql://116.204.99.126:3306/snms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
  52. # username: idis_user
  53. # password: Teleinfo-88
  54. # 初始连接数
  55. initialSize: 5
  56. # 最小连接池数量
  57. minIdle: 10
  58. # 最大连接池数量
  59. maxActive: 20
  60. # 配置获取连接等待超时的时间
  61. maxWait: 60000
  62. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  63. timeBetweenEvictionRunsMillis: 60000
  64. # 配置一个连接在池中最小生存的时间,单位是毫秒
  65. minEvictableIdleTimeMillis: 300000
  66. # 配置一个连接在池中最大生存的时间,单位是毫秒
  67. maxEvictableIdleTimeMillis: 900000
  68. # 配置检测连接是否有效
  69. validationQuery: SELECT 1 FROM DUAL
  70. testWhileIdle: true
  71. testOnBorrow: false
  72. testOnReturn: false
  73. webStatFilter:
  74. enabled: true
  75. statViewServlet:
  76. enabled: true
  77. # 设置白名单,不填则允许所有访问
  78. allow:
  79. url-pattern: /druid/*
  80. # 控制台管理用户名和密码
  81. login-username: admin
  82. login-password: ezhizao.cn
  83. filter:
  84. stat:
  85. enabled: true
  86. # 慢SQL记录
  87. log-slow-sql: true
  88. slow-sql-millis: 1000
  89. merge-sql: true
  90. wall:
  91. config:
  92. multi-statement-allow: true
  93. socket-timeout: 3600000
  94. # 文件上传
  95. ruoyi:
  96. profile: /home/ruoyi/yzbh/
  97. pdfTemplate:
  98. url: /home/files/yzbh/templates/
  99. pdfFontPath:
  100. url: /usr/share/fonts/chinese/