【发布时间】:2015-04-07 03:57:09
【问题描述】:
当我启动 Spring Cloud Config Server 时,出现以下错误。
Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/configserver/default/master":Connection refused; nested exception is java.net.ConnectException: Connection refused
但是,当我在浏览器中点击该 URL 时,它存在并且配置服务器正在运行。怎么回事?
application.yml
server:
port: 8888
management:
context-path: /admin
logging:
level:
com.netflix.discovery: 'OFF'
org.springframework.cloud: 'DEBUG'
spring:
cloud:
config:
server:
git:
uri: file:/home/dev/configs
bootstrap.yml
spring:
application:
name: configserver
【问题讨论】: