首页 > 编程语言 > 详细

小知识:SpringCloudConfigServer从git获取配置信息报错:.c.s.e.MultipleJGitEnvironmentRepository : Error occured cloning to base directory.

时间:2020-02-28 22:46:02      阅读:221      评论:0      收藏:0      [点我收藏+]

因为SpringCloudConfig相关的配置信息在程序启动时进行配置信息查询,这个动作发生在application.yml加载之前。

因此需要把springcloudconfig相关的配置信息配置到bootstrap.yml中。
例:bootstrap.yml中配置如下信息:
spring:
  cloud:
    config:
      server:
        git:
          uri: https://github.com/xxx/spring-cloud-config-repository.git
          username: xxx
          password: yyyy
          default-label: master
          search-paths: config
          skip-ssl-validation: true

小知识:SpringCloudConfigServer从git获取配置信息报错:.c.s.e.MultipleJGitEnvironmentRepository : Error occured cloning to base directory.

原文:https://www.cnblogs.com/chongpf/p/12380348.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!