微服務讀取不到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