application-dev.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # redis 相关
  2. spring:
  3. redis:
  4. password:
  5. host: localhost
  6. # 暴露监控端点
  7. management:
  8. endpoints:
  9. web:
  10. exposure:
  11. include: '*'
  12. # feign 配置
  13. feign:
  14. hystrix:
  15. enabled: true
  16. okhttp:
  17. enabled: true
  18. httpclient:
  19. enabled: false
  20. client:
  21. config:
  22. feignName:
  23. connectTimeout: 10000
  24. readTimeout: 10000
  25. compression:
  26. request:
  27. enabled: true
  28. response:
  29. enabled: true
  30. # hystrix If you need to use ThreadLocal bound variables in your RequestInterceptor`s
  31. # you will need to either set the thread isolation strategy for Hystrix to `SEMAPHORE or disable Hystrix in Feign.
  32. hystrix:
  33. command:
  34. default:
  35. execution:
  36. isolation:
  37. strategy: SEMAPHORE
  38. thread:
  39. timeoutInMilliseconds: 60000
  40. shareSecurityContext: true
  41. #请求处理的超时时间
  42. ribbon:
  43. ReadTimeout: 10000
  44. ConnectTimeout: 10000
  45. `#swagger公共信息
  46. swagger:
  47. description: '全宇宙最牛逼的Spring Cloud微服务开发脚手架'
  48. version: '1.2.4'
  49. contact:
  50. name: '冷冷'
  51. email: 'wangiegie@gmail.com'
  52. url: 'https://gitee.wang/pig/pigx'