bootstrap.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. appname: svr-configurations
  21. health-check-url-path: /health
  22. ---
  23. spring:
  24. profiles: jwdev
  25. ##git配置
  26. cloud:
  27. config:
  28. failFast: true #启动快速失败 即链接不到配置服务就启动失败
  29. server:
  30. git:
  31. uri: http://192.168.1.220:10080/jiwei/wlyy2.0.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/jiwei/wlyy2.0.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_dev\IdeaWorkSpace\jw2.0-dev\jw.config #本地的got配置路径