bootstrap.yml 881 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. server:
  2. port: 8101
  3. spring:
  4. application:
  5. name: wei-test
  6. cloud:
  7. consul:
  8. # consul的IP
  9. host: 192.168.11.128
  10. # consul启动端口
  11. port: 8500
  12. profiles:
  13. active: dev
  14. feign:
  15. hystrix:
  16. # 在feign中开启hystrix功能,默认情况下feign不开启hystrix功能
  17. enabled: true
  18. httpclient:
  19. # 只要引入feign-httpclient包默认启用 不加此配置也可以
  20. enabled: true
  21. # 配置hystrix的参数
  22. hystrix:
  23. threadpool:
  24. # default: 默认参数,作用的所有的hystrix的客户端,如果需要对某个具体的接口,可以写接口+方法名称
  25. default:
  26. coreSize: 500
  27. command:
  28. default:
  29. fallback:
  30. # 是否开启回退方法
  31. enabled: true
  32. execution:
  33. isolation:
  34. thread:
  35. #超时时间 默认1000毫秒
  36. timeoutInMilliseconds: 5000