bootstrap.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. spring:
  2. application:
  3. name: svr-configurations
  4. security:
  5. user:
  6. name: jw
  7. password: jkzl
  8. #发现服务
  9. eureka:
  10. client:
  11. healthcheck:
  12. enabled: true #启动监控检查
  13. instance:
  14. #eurika使用IP不使用host
  15. prefer-ip-address: true
  16. #定制化在eurika中显示的名称
  17. ##instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}}
  18. instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  19. ---
  20. spring:
  21. profiles: jwdev
  22. ##git配置
  23. cloud:
  24. config:
  25. failFast: true ##启动快速失败 即链接不到配置服务就启动失败
  26. server:
  27. git:
  28. #uri: http://192.168.1.220:10080/chenweida/jw.config.git
  29. #uri: http://192.168.116.100:10080/chenweida/mini.jw.config.git
  30. uri: http://192.168.1.220:10080/chenyongxing/jw.config.git
  31. default-label: master
  32. ---
  33. spring:
  34. profiles: jwtest
  35. ##git配置
  36. cloud:
  37. config:
  38. server:
  39. git:
  40. uri: http://192.168.1.220:10080/EHR/ehr.config.git
  41. default-label: dev
  42. ---
  43. spring:
  44. profiles: jwprod
  45. ##git配置
  46. cloud:
  47. config:
  48. server:
  49. git:
  50. uri: http://11.1.2.8:3000/ehr_admin/ehr.config.git
  51. default-label: master