SpringCloudConfig 一直报错 Cannot clone or checkout repository

2023-11-02

配置都没有问题,git也验证了,都可以发现问题。

用户名密码也正确就是,报错,无法从git中检出。

也想过过是https的问题,但是github.com,用的授信的证书。

但是最终还是https的原因!找了好久终于通过设置忽略https,成功了,感谢博主的分享!原文如下:

https://www.cnblogs.com/TravisGrady/p/10678980.html

具体的配置

spring:
  application:
    name: config-server
  cloud:
    config:
      server:
        git:
          uri: https://github.com/xxx/springcloud-server-config.git
          username: your name
          password: your password
          skip-ssl-validation: true

关键就是:skip-ssl-validation: true 

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

SpringCloudConfig 一直报错 Cannot clone or checkout repository 的相关文章

随机推荐