bootstrap.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. spring:
  2. application:
  3. name: xt-ems-api
  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: true
  15. # discovery:
  16. # enabled: true
  17. # service-id: config-server
  18. bus:
  19. trace:
  20. enabled: false
  21. enabled: false
  22. server:
  23. port: ${SERVER_PORT:8086}
  24. tomcat:
  25. basedir: ${user.home}/tomcat/tmp
  26. eureka:
  27. client:
  28. serviceUrl:
  29. defaultZone: http://root:root@${EUREKA_HOST:172.16.90.238}:${EUREKA_PORT:8086}/eureka/
  30. metadata-map:
  31. cluster: ribbon
  32. instance:
  33. hostname: xt-ems-api
  34. status-page-url: http://${SWAGGER_INDEX:localhost:9003}/swagger-ui.html
  35. prefer-ip-address: true
  36. instance-id: ${spring.cloud.client.ip-address}:${server.port}
  37. #禁止调用eureka client获取注册列表信息
  38. ribbon:
  39. eureka:
  40. enabled: true
  41. #新版配置,否则后面dashboard无法找到hystrix.stream
  42. management:
  43. endpoints:
  44. web:
  45. exposure:
  46. include: '*'