chenweida 7 vuotta sitten
vanhempi
commit
d8a3c1f480

+ 8 - 0
svr-configuration/readme.MD

@ -17,5 +17,13 @@
              discovery:
                enabled: true ##使用发现服务
                service-id: svr-configurations ##配置服务的名字
                
                
                
查询微服务的配置
    
    http://localhost:1221/svr-quota/jwdev         
        svr-quota:微服务的name   
        jwdev 环境变量
        

+ 15 - 0
svr-configuration/src/main/resources/bootstrap.yml

@ -62,3 +62,18 @@ spring:
        default-label: master
---
##不想用远程的git 可以在环境变量配置native 开启本地配置
spring:
  profiles:
    active: native
##git配置
  cloud:
    config:
      failFast: true ##启动快速失败 即链接不到配置服务就启动失败
      server:
        native:
          search-locations: file:G:\idea_workspace\jkzl_git\jw.config  ##本地的got配置路径