I have a microservice that runs using the liberty server. I have set of configuration properties that are not being used directly using @Value or @ConfigurationProperties or @Configuration.
Properties Structure:
I have application.yml as
DBUserName: ${username}
DBPassword: ${password}
and bootstrap.properties as
username: XXXX
password: XXXX
now I have implemented a config server and it is reading property file from the git repo. Config file structure:
appname-dev.yml
Username: abcd
password: abcd
In the client, I have configured bootstrap.yml as
spring:
profiles:
active: dev
application:
name: appname
cloud:
bootstrap:
enabled: true
config:
uri: http://localhost:8888
Whenever I update the properties in the git repo, the config server gets the updated properties but client-side those properties are not getting updated after hitting actuator/refresh endpoint.
When I hit actuator/env at the client-side, it displays the updated properties from the config server but bootstrap.properties will have the same old properties which application uses.
So, what am I missing here? will the config server not work for this scenario?