1

Supposing I have info.name=bruce stored in config server A but server A hasn't started yet. Now I start a client with local configuration info.name=Neo. Apparently info.name is equal to Neo for this client. I think info.name should be replaced with bruce if I start config server A, but in fact info.name is still Neo.

So my question is if client starts without config server, will it retrieve configuration again when config server starts?

2
  • Have you looked into using RefreshScope cloud.spring.io/spring-cloud-static/… Commented Jul 25, 2016 at 23:54
  • Thanks for your answer. I've figured it out. The reason why client's configuration doesn't change is that the local configuration takes priority to the remote's. Commented Jul 26, 2016 at 3:14

1 Answer 1

1

I've figured it out. Local configuration takes priority of the remote's because of the absence of the config server(Client will load local configuration first). Removing the info.name property from client configuration solved my problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.