bootstrap.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. spring:
  2. application:
  3. name: jg_wzjl_scheduled_job
  4. profiles:
  5. active: ${SPRING_PROFILES:prod}
  6. sleuth:
  7. sampler:
  8. #默认值为0.1f,现在为了测试设置100%采集
  9. percentage: 1.0
  10. cloud:
  11. config:
  12. # fail-fast: true
  13. discovery:
  14. enabled: true
  15. service-id: config-server
  16. bus:
  17. trace:
  18. enabled: false # 2021年9月10日取消springcloud中bus总线服务
  19. enabled: false # 2021年9月10日取消springcloud中bus总线服务
  20. server:
  21. port: ${SERVER_PORT:9005}
  22. eureka:
  23. client:
  24. serviceUrl:
  25. defaultZone: http://root:root@${EUREKA_HOST:localhost}:${EUREKA_PORT:8061}/eureka/
  26. metadata-map:
  27. cluster: ribbon
  28. instance:
  29. hostname: jg_wzjl_scheduled_job
  30. status-page-url: http://${SWAGGER_INDEX:localhost:9002}/swagger-ui.html
  31. prefer-ip-address: true
  32. instance-id: ${spring.cloud.client.ip-address}:${server.port}
  33. #禁止调用eureka client获取注册列表信息
  34. ribbon:
  35. eureka:
  36. enabled: true # 2021年9月10日取消注册服务到注册中心
  37. #新版配置,否则后面dashboard无法找到hystrix.stream
  38. management:
  39. server:
  40. port: -1