When we use Nacos to refresh the configuration.The ContextRefresher.refresh() method will be called through the RefreshEvent event.
The changes method obtains changed configuration items. Then binds the changed configuration items and context to EnvironmentChangeEvent and sends EnvironmentChangeEvent events.
ConfigurationPropertiesRebinder.onApplicationEvent(EnvironmentChangeEvent event) listens to environment change events, but does not judge the changed configuration items, so all @ConfigurationProperties Beans will be refreshed.
May I ask why there is no judgment to change the configuration items (keys) here?
spring-cloud-context version is 2.2.9.RELEASE
Comment From: scottfrederick
ContextRefresher is part of the Spring Cloud Commons project, not Spring Boot. I would suggest asking this question on StackOverflow using the spring-cloud tag.