spring cloud config server端配置私有git仓库异常,不支持ssh协议?

新手上路,请多包涵

我的配置文件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协议吗?

阅读 4.9k
2 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题