bootstrap.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. failFast: true #启动快速失败 即链接不到配置服务就启动失败
  39. server:
  40. git:
  41. # uri: http://192.168.1.220:10080/EHR/ehr.config.git
  42. uri: http://192.168.1.220:10080/chenyongxing/jw.config.git
  43. default-label: master
  44. ---
  45. spring:
  46. profiles: jwprod
  47. ##git配置
  48. cloud:
  49. config:
  50. server:
  51. git:
  52. uri: http://11.1.2.8:3000/ehr_admin/ehr.config.git
  53. default-label: master
  54. ---
  55. ##不想用远程的git 可以在环境变量配置native 开启本地配置
  56. spring:
  57. profiles:
  58. active: native
  59. ##git配置
  60. cloud:
  61. config:
  62. failFast: true #启动快速失败 即链接不到配置服务就启动失败
  63. server:
  64. native:
  65. search-locations: file:D:\Software\soft\IdeaWorkSpace\jwDevelopment\jw.config ##本地的got配置路径