码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2020-01-29 01:13:24      阅读:554      评论:0      收藏:0      [点我收藏+]

标签:pre   原因   not found   tps   https   问题   http   出现   标签   

服务出现报这个错,

 

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

  

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

标签:pre   原因   not found   tps   https   问题   http   出现   标签   

原文地址:https://www.cnblogs.com/Chen-lx/p/12239405.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!