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时,业务系统中实际并没有被删除 #100

Closed
akaks opened this issue Dec 25, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@akaks
Copy link

akaks commented Dec 25, 2019

配置中心支持了配置listmap 属性(configuration),yaml文件如下
listMap:
l1: "New York Mets"
l2: "Chicago Cubs"

当更新配置中心,将l2删除时,实际l2并不会被删除,而是会保留下来
#######################################################
The configuration center supports configuration listmap properties (configuration), and the yaml file is shown below
ListMap:
L1: "the New York Mets." "
L2: "Chicago Cubs." "
When the configuration is updated to remove l2, the actual l2 is not removed, but retained
#######################################################

Issue Description
Type: bug report

Describe what happened (or what feature you want)
Describe what you expected to happen
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
Anything else we need to know?

@akaks
Copy link
Author

akaks commented Dec 25, 2019

image

目前我使用ObjectUtils.cleanMapOrCollectionField(bean);将bean清空,可以避免map的key删不掉的情况

@chuntaojun chuntaojun added the bug Something isn't working label Jan 11, 2020
@chuntaojun
Copy link
Member

version 报一下

@chuntaojun
Copy link
Member

确实是一个bug,已修复好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants