application-dev.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. spring:
  2. cloud:
  3. discovery:
  4. locator:
  5. enabled: true
  6. lower-case-service-id: true
  7. gateway:
  8. # 路由数组:指当请求满足什么样的断言时,转发到哪个服务上
  9. routes:
  10. - id: wares
  11. uri: lb://wares-service # 路由对应的微服务转发地址 服务名称
  12. predicates:
  13. - Path=/wares_service/** #如果名字和参数是唯一的,可以将名字参数写在一起
  14. - id: order
  15. uri: lb://order-service # 路由对应的微服务转发地址 服务名称
  16. predicates:
  17. - Path=/order_service/** #如果名字和参数是唯一的,可以将名字参数写在一起
  18. - id: userCenter
  19. uri: lb://userCenter-service
  20. predicates:
  21. - Path=/userCenter_service/**
  22. - id: pension
  23. uri: lb://pension-service
  24. predicates:
  25. - Path=/pension_service/**
  26. - id: merchant
  27. uri: lb://merchant-service
  28. predicates:
  29. - Path=/merchant_service/**
  30. - id: system
  31. uri: lb://system-service
  32. predicates:
  33. - Path=/system_service/**
  34. - id: thirdPartyWares
  35. uri: lb://thirdPartyWares-service
  36. predicates:
  37. - Path=/thirdPartyWares_service/**
  38. - id: api
  39. uri: lb://api-service
  40. predicates:
  41. - Path=/api/**
  42. - id: poster
  43. uri: lb://poster-service
  44. predicates:
  45. - Path=/poster_service/**
  46. - id: sysmanage
  47. uri: lb://sysmanage-service
  48. predicates:
  49. - Path=/sysmanage_service/**
  50. redis:
  51. host: 60.205.129.253
  52. port: 6379
  53. password: bjtdba
  54. database: 6
  55. timeout: 5000
  56. jedis:
  57. pool:
  58. # 连接池最大连接数(使用负值表示没有限制)
  59. max-active: 200
  60. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  61. max-wait: -1
  62. # 连接池中的最大空闲连接
  63. max-idle: 8
  64. # 连接池中的最小空闲连接
  65. min-idle: 0
  66. #配置eureka
  67. eureka:
  68. client:
  69. service-url:
  70. defaultZone: http://127.0.0.1:8000/eureka/
  71. instance:
  72. prefer-ip-address: true #使用ip地址注册
  73. #日志格式化 只输出日期和内容
  74. logging:
  75. pattern:
  76. console: "%d - %msg%n"
  77. level:
  78. com:
  79. bjtdba:
  80. gateWay: DEBUG