my configuration bean has a property like Map
test:
maps:
k1: v1
k2: v2
I delete k2:v2 ,there has still k2:v2.
Comment From: johnowl
Same issue here. I have a class annotated with @ConfigurationProperties("my-prefix")
, the class has some String, Long and a Map<String, String>
, when I change the values, refresh config-server and call the app /actuator/refresh
the map is not updated, but the other properties are ok.
Comment From: ryanjbaxter
See https://github.com/spring-cloud/spring-cloud-commons/issues/818#issuecomment-696213968
Comment From: sepidehabbasitehrani
You should @Component at the class that is annotated by ConfigurationProperties, after that by calling /actuator/refresh url, surprisingly you will see your configuration will ne refreshed