微服務讀取不到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
相關文章
相關標籤/搜索