bootstrap.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. spring:
  2. application:
  3. name: dil-cd-service
  4. profiles:
  5. active: dev
  6. zipkin:
  7. base-url: http://${ZIPKIN_HOST:localhost}:9411
  8. sleuth:
  9. sampler:
  10. #默认值为0.1f,现在为了测试设置100%采集
  11. percentage: 1.0
  12. cloud:
  13. config:
  14. fail-fast: false
  15. discovery:
  16. enabled: false
  17. service-id: config-server
  18. bus:
  19. trace:
  20. enabled: false
  21. enabled: false
  22. server:
  23. port: 80
  24. eureka:
  25. client:
  26. serviceUrl:
  27. defaultZone: http://root:root@${EUREKA_HOST:localhost}:${EUREKA_PORT:8061}/eureka/
  28. # defaultZone: http://root:root@http://172.16.2.149:32101/eureka/
  29. metadata-map:
  30. cluster: ribbon
  31. instance:
  32. hostname: dil-cd-service
  33. status-page-url: http://${SWAGGER_INDEX:tgwl.steerinfo.com}/swagger-ui.html
  34. prefer-ip-address: true
  35. instance-id: ${spring.cloud.client.ip-address}:${server.port}
  36. #禁止调用eureka client获取注册列表信息
  37. ribbon:
  38. eureka:
  39. enabled: true
  40. #新版配置,否则后面dashboard无法找到hystrix.stream
  41. management:
  42. endpoints:
  43. web:
  44. exposure:
  45. include: '*'
  46. feign:
  47. client:
  48. config:
  49. default:
  50. connect-timeout: 5000
  51. read-timeout: 10000