SpringCloud下报错org.eclipse.jgit.api.errors.TransportException: git@github.com:XXX: Auth fail(成功解决)
由于SpringCloud Config默认使用git来存储配置文件,所以在连接github就出现了此问题,直接上解决方案。
spring:
cloud:
config:
server:
git:
uri: https://github.com/XXX/XXX.git #GitHub上git仓库名
search-paths:
- springcloud-config
skip-ssl-validation: true #跳过ssl验证
username: github用户名
password: github密码
# force-pull: true
label: master #默认分支