配置都没有问题,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