[英]Can't get information from git server using spring cloud config
我有一个Spring Cloud Config项目,我可以在其中连接到github帐户,我的项目工作正常,但是在我的工作中,我的老板想制作一个git服务器并使用它而不是github帐户,因此在我的服务器上安装git之后(Linux ,我创建了一个这样的存储库:
git init configuracionCarnet
cd configuracionCarnet
git pull <url from github>
git remote add origin user@ip:/home/desarrollo/configuracionCarnetDesarrollo.git
在我的Spring云配置项目中,我像这样更改application.yml:
spring:
cloud:
config:
server:
git:
uri: user@ip:/home/desarrollo/configuracionCarnet.git
username: user
password: password
server:
port: 8001
我运行该项目并开始正常,但是当我执行http:// localhost:8001 / health时,它抛出该项目已关闭,因此我无法连接到git服务器,我在做什么错?,
提前致谢
您不会使用…remote add…
创建服务器。
您也不会通过将不存在的URL放入配置中来使用Spring配置创建服务器。
可能性:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.