spring cloud config配置中心获取github上文件,报错:reject HostKey: github.com
解决方式:
将SSH调用: git@github.com:XXX/config.git
改为https调用:https://github.com/XXX/config.git
spring: application: name: cloud-config-center cloud: config: server: git: uri: https://github.com/XXXX/config.git search-paths: config #搜索目录 default-label: master #读取分支 username: XXX password: XXX skip-ssl-validation: true