Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置中心map属性删除某个key时,业务系统中实际并没有被删除 #215

Closed
xiaohei88 opened this issue Nov 24, 2021 · 3 comments

Comments

@xiaohei88
Copy link

#100
说是修复了,为什么用master分支测试还是不行。

哪个版本修复的。里面也没pr

@li-xiao-shuang
Copy link
Member

#100 说是修复了,为什么用master分支测试还是不行。

哪个版本修复的。里面也没pr

能否提供一下你的版本 以及复现步骤?

@xiaohei88
Copy link
Author

nacos-spring-boot版本:0.2.10。
nacos-server版本:2.0.3
使用nacos-config-sample工程,在Apple里面新建了一个属性,简写如:

@NacosConfigurationProperties(prefix = "apple", dataId = "test", type = ConfigType.PROPERTIES, autoRefreshed = true)
@Configuration
public class Apple {

	private Map<String, Object> map;
}

nacos服务端设置属性:

apple.map.b0=1
apple.map.b1=2
apple.map.b2=3

一开始读取出来是三个,但是我删掉两个后,读取出来的还是三个。
我看你们在NacosConfigurationPropertiesBinderbind时添加了ObjectUtils.cleanMapOrCollectionField(bean);
但是在NacosBootConfigurationPropertiesBinder没有的。因为继承了重写了doBind

@hujun-w-2
Copy link
Collaborator

@i will solve it@

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants