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

北战南征 提交于 2020-01-29 00:18:26

服务出现报这个错,

 

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

  主要原因是git的uri配置出现问题了

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

  

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!