4finance / micro-infra-spring

Repository containing default microservice infrastructure set up using Spring configuration
Apache License 2.0
203 stars 49 forks source link

Spring Cloud should not try to connect to default repo on startup #323

Open szpak opened 9 years ago

szpak commented 9 years ago

spring.cloud.config.server.enabled seems to be removed from Spring Cloud and although ConfigServerBootstrapConfiguration should not be enabled by default there is an error when starting boot-microservice (with 0.8.12 and Spring Cloud 1.0.0):

10:11:29.380 [main] ERROR o.s.c.b.c.PropertySourceBootstrapConfiguration
Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/bootstrap/defaul/master":
Connection refused; nested exception is java.net.ConnectException: Connection refused
szpak commented 9 years ago

It turned out that in the next version of spring-cloud-config a client will not try to connect remote server by default. It should address our needed. This is a part of wider changes in spring-cloud-config.

I'm leaving this issue open until we switch to (not yet released) version 1.0.1.

Btw, there are incompatibilities with version 1.0.1