【发布时间】:2017-07-13 14:13:49
【问题描述】:
我的应用程序.yml:
server:
port: 8888
eureka:
instance:
hostname: localhost
client:
registerWithEureka: true
fetchRegistry: true
serviceUrl:
defaultZone: http://localhost:8761/eureka/
spring:
cloud:
config:
server:[enter image description here][1]
git:
searchPaths: cloud-config-repo
uri: file:///E:/idea/spring-cloud-microservice-example-master/config-microservice/src/main/resources/configPath
当使用 url:http://localhost:8888/movie/default,i 时出现错误:java.lang.IllegalStateException: No .git at file:///E:/idea/spring-cloud-microservice-example-master/config-microservice/src /main/resources/configPath
【问题讨论】:
-
也许它应该指向远程存储库而不是本地目录? :)
-
那么,你在指定文件夹中有本地 git repo 吗?
-
我没有本地 git。