Skip to content

configure a config client in a container #45

Discussion options

You must be logged in to vote

Thanks,
My problem was the clients, and the decision for our services to use the same application.yml file for booting regardless of environment. But currently I have no longer problems.
I put some ${variable:default-value} in the application.yml file making it possible to change value by adding environment variables in the compose file. And it works. This happens before Spring I guess. There is so many ways to do things in Spring. Hard for a beginner to understand the best way.
Interesting to look into your implementation, and understand that you really need to learn how to control the behavior of a Spring application by all its annotations.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bjornTennander
Comment options

Comment options

You must be logged in to vote
1 reply
@bjornTennander
Comment options

Answer selected by hyness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants