bootstrap.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. spring:
  2. application:
  3. name: svr-configurations
  4. jmx:
  5. default-domain: ${spring.application.name}
  6. security:
  7. user:
  8. name: jw
  9. password: jkzl
  10. eureka:
  11. client:
  12. healthcheck:
  13. enabled: true #启动监控检查
  14. instance:
  15. #eurika使用IP不使用host
  16. prefer-ip-address: true
  17. #定制化在eurika中显示的名称
  18. ##instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}}
  19. instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  20. ---
  21. spring:
  22. profiles: jwdev
  23. ##git配置
  24. cloud:
  25. config:
  26. failFast: true #启动快速失败 即链接不到配置服务就启动失败
  27. server:
  28. git:
  29. # uri: http://192.168.1.220:10080/chenweida/jw.config.git
  30. # uri: http://192.168.116.100:10080/chenweida/mini.jw.config.git
  31. uri: http://192.168.1.220:10080/jiwei/jw.config.git
  32. default-label: master
  33. ---
  34. spring:
  35. profiles: jwtest
  36. ##git配置
  37. cloud:
  38. config:
  39. failFast: true #启动快速失败 即链接不到配置服务就启动失败
  40. server:
  41. git:
  42. # uri: http://192.168.1.220:10080/EHR/ehr.config.git
  43. uri: http://192.168.1.220:10080/chenyongxing/jw.config.git
  44. default-label: master
  45. ---
  46. spring:
  47. profiles: jwprod
  48. ##git配置
  49. cloud:
  50. config:
  51. server:
  52. git:
  53. uri: http://11.1.2.8:3000/ehr_admin/ehr.config.git
  54. default-label: master
  55. ---
  56. ##不想用远程的git 可以在环境变量配置native 开启本地配置
  57. spring:
  58. profiles:
  59. active: native
  60. ##git配置
  61. cloud:
  62. config:
  63. failFast: true #启动快速失败 即链接不到配置服务就启动失败
  64. server:
  65. native:
  66. search-locations: file:D:\software\soft_dev\IdeaWorkSpace\jw2.0-dev\jw.config ##本地的got配置路径