application-local.yml 3.7 KB

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