bootstrap.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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/jiwei/wlyy2.0.config.git
  30. default-label: master
  31. ---
  32. spring:
  33. profiles: jwtest
  34. ##git配置
  35. cloud:
  36. config:
  37. failFast: true #启动快速失败 即链接不到配置服务就启动失败
  38. server:
  39. git:
  40. uri: http://192.168.1.220:10080/jiwei/wlyy2.0.config.git
  41. default-label: master
  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
  52. ---
  53. ##不想用远程的git 可以在环境变量配置native 开启本地配置
  54. spring:
  55. profiles:
  56. active: native
  57. ##git配置
  58. cloud:
  59. config:
  60. failFast: true #启动快速失败 即链接不到配置服务就启动失败
  61. server:
  62. native:
  63. search-locations: file:D:\software\soft_dev\IdeaWorkSpace\jw2.0-dev\jw.config #本地的got配置路径