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


服务出现报这个错,

 

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

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM