Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Cloud Config Server Can't locate PropertySource on startup

When I start my Spring Cloud Config Server I get the following error.

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

However when I hit that URL in my browser it exists and the config server is working. What is going on?

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
like image 480
Brian Abston Avatar asked Feb 06 '15 21:02

Brian Abston


1 Answers

If your config server is not intended to be a config client as well you need to set spring.cloud.config.enabled=false to avoid that log entry (it's harmless though).

like image 199
Dave Syer Avatar answered Sep 28 '22 10:09

Dave Syer