鍍金池/ 問答/云計算  Java/ spring cloud config server端配置私有g(shù)it倉庫異常,不

spring cloud config server端配置私有g(shù)it倉庫異常,不支持ssh協(xié)議?

我的配置文件application.yml:
spring:
application:

name: ConfigServer

cloud:

config:
  server:
    git:
      uri: ssh://git@172.16.87.101:config-server.git

項目啟動正常,但通過http://localhost:8080/abc-application.properties訪問時報錯,提示org.eclipse.jgit.errors.NotSupportedException: URI not supported: ssh:///git@172.16.87.101:config-server.git/;如果是github上的git倉庫就沒問題,是不支持ssh協(xié)議嗎?

回答
編輯回答
練命
2018年8月14日 21:39