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
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With