【发布时间】:2018-06-14 10:04:09
【问题描述】:
我正在使用 Spring Cloud,并使用 Config-server 来外部化微服务的属性。
下面是配置服务器的清单文件
server:
port: 8888
spring:
cloud:
config:
server:
git:
uri: https://github.com/Girdhars/config-server.git
application:
name: config-server
management:
security:
enabled: false
但是在访问 Rest Endpoint http://localhost:8888/application/default 我正在低于异常。
{
"timestamp": 1515082055134,
"status": 404,
"error": "Not Found",
"exception": "org.springframework.cloud.config.server.environment.NoSuchRepositoryException",
"message": "Cannot clone or checkout repository: https://github.com/Girdhars/config-server.git",
"path": "/application/default"
}
【问题讨论】:
-
从网址中删除
.git? -
@spencergibb ,它(.git)真的没关系我确实删除了。但不工作
-
您是否正在通过 http 代理?是这样的吗?
标签: spring spring-boot spring-cloud spring-cloud-config