Spring Cloud Configuration Server Cannot Find Source PropertySource at 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 this URL in my browser, it exists and the configuration server is working. What's happening?

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 
+5
source share
2 answers

If your configuration server is not intended for the configuration client as well, you need to set spring.cloud.config.enabled=false to avoid spring.cloud.config.enabled=false (although this is harmless).

+4
source

Configuration eureka.client.serviceUrl.defaultZone and spring.cloud.config. * in boot yml file

-3
source

Source: https://habr.com/ru/post/1212844/


All Articles