bootstrap.yml 1.8 KB

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