I have configured bootstrap.yml for spring config
spring:
application:
name: cce-auth
cloud:
config:
uri: http://temp.com:8888
It works fine but I need URI value Dynamically, for example if I will publish this .war
in test environment this URL must be http://test-temp.com:8888
.
So for this I have solution create config.txt file in server and using I/O Stream reed/write this string to bootstrap.yml.
But problem is loading, spring loads http://localhost:8888
before I'm writing in bootstrap.yml.
So my reason is to create dynamically URI for config server. DO you have any idea?