gateway-dev.yml 903 B

123456789101112131415161718192021222324252627282930313233
  1. spring:
  2. redis:
  3. host: 192.168.2.100
  4. port: 6379
  5. #password: 123456
  6. #Redis数据库索引(默认为0)
  7. database: 0
  8. #连接池最大连接数(使用负值表示没有限制)
  9. jedis:
  10. pool:
  11. max-active: 50
  12. #连接池最大阻塞等待时间(使用负值表示没有限制)
  13. max-wait: -1
  14. #连接池中的最大空闲连接
  15. max-idle: 20
  16. #连接池中的最小空闲连接
  17. min-idle: 2
  18. #连接超时时间(毫秒)
  19. timeout: 5000
  20. # 指定服务注册中心的地址
  21. eureka:
  22. instance:
  23. prefer-ip-address: true # 是否使用 ip 地址注册
  24. instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
  25. client:
  26. service-url: # 设置服务注册中心地址
  27. defaultZone: http://localhost:18000/eureka/
  28. # 日志配置
  29. logging:
  30. level:
  31. root: info