微服务读取不到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
有道无术,术上可求.有术无道,止于术.
有思想知识学习它的技术就比较快了,如果只会技术不会思想的话那就会停止进步

浙公网安备 33010602011771号