微服务读取不到config配置中心配置信息,Spring Boot没法找到PropertySource:找不到标签Could not locate PropertySource: label not

服务出现报这个错,java

 

o.s.c.c.c.ConfigServicePropertySourceLocator - Could not locate PropertySource: label not found

  主要缘由是git的uri配置出现问题了git

cloud:
    config:
      label: master
      server:
        git:         #uri地址改为本身的的config的地址就http或者https地址就能够了.外网的话正常是要配ssh私钥的
          uri: http://192.168.140.130:8081/itoken/itoken-config.git
          search-paths: respo
          username: clx
          password: 123456789
相关文章
相关标签/搜索