gpt4 book ai didi

带 Git 的 Spring Cloud 配置服务器 - 无法克隆或 checkout 存储库连接超时

转载 作者:行者123 更新时间:2023-12-02 03:55:32 24 4
gpt4 key购买 nike

我正在使用 GIT 在 Spring Cloud Config Server 上进行 POC。

Spring Boot 1.5.3.RELEASE java 1.8 Spring 工具套件 https://github.com/kishornpatil/

我已在网络连接中正确设置 STS 代理。

我有http.sslverify = false

当我请求 "localhost:8888/health" 时,我收到以下异常

2017-05-18 11:11:15.714 ERROR 9608 --- [nio-8888-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Cannot clone or checkout repository] with root cause

java.net.SocketTimeoutException: connect timed out at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[na:1.8.0_92] at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_92] at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_92] at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_92]

我错过了什么?

最佳答案

我在 Spring Cloud 配置服务器上也遇到了同样的问题。您需要添加一个附加属性:

spring.cloud.config.server.git.skip-ssl-validation = true

application.properties 文件中。

关于带 Git 的 Spring Cloud 配置服务器 - 无法克隆或 checkout 存储库连接超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44053356/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com