application-cloud.yml 473 B

12345678910111213141516171819
  1. spring:
  2. cloud:
  3. consul:
  4. config:
  5. # 表示consul上面文件的格式 有四种 yaml properties key_value files
  6. format: yaml
  7. prefix: config
  8. data-key: application.yml
  9. discovery:
  10. prefer-ip-address: true
  11. health-check-path: ${server.servlet.context-path:}/actuator/health
  12. ribbon:
  13. eager-load:
  14. enabled: true
  15. # 是否自动加载
  16. autoEnabled: true
  17. # 需要过滤加载的服务
  18. excludes: consul