application.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ##公共配置
  2. server:
  3. svr-configurations-port: 1221
  4. svr-discovery-port: 8761
  5. svr-base-port: 10020
  6. web-gateway-port: 8088
  7. #发现服务
  8. eureka:
  9. client:
  10. healthcheck:
  11. enabled: true #启动监控检查
  12. instance:
  13. #eurika使用IP不使用host
  14. prefer-ip-address: true
  15. #定制化在eurika中显示的名称
  16. instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}}
  17. ##优先读取 boostarap配置 然后在读取application。yml的配置
  18. spring:
  19. #从发现服务里面取配置服务的信息
  20. cloud:
  21. config:
  22. username: jw
  23. password: jkzl
  24. discovery:
  25. enabled: true ##使用发现服务
  26. service-id: svr-configurations ##配置服务的名字
  27. ---
  28. spring:
  29. profiles: dev
  30. eureka:
  31. client:
  32. serviceUrl:
  33. #http://账号:密码@127.0.0.1:8761/eureka/
  34. defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka/
  35. ---
  36. spring:
  37. profiles: test
  38. eureka:
  39. client:
  40. serviceUrl:
  41. #http://账号:密码@127.0.0.1:8761/eureka/
  42. defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka/
  43. ---
  44. spring:
  45. profiles: prod
  46. eureka:
  47. client:
  48. serviceUrl:
  49. #http://账号:密码@127.0.0.1:8761/eureka/
  50. defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka/