application-dev.yml 4.0 KB

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