alibaba / spring-cloud-alibaba

Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
https://sca.aliyun.com
Apache License 2.0
27.83k stars 8.31k forks source link

nacos config autoRefresh wrong datas bug? #731

Closed hello-zhengzq closed 5 years ago

hello-zhengzq commented 5 years ago

Which Component Nacos Dynamic Configuration Service

Describe the bug while i using the Dynamic Configuration Service for autoRefreshing data, some datas seemed not be refreshed correctly.

To Reproduce

  1. nacos yml format configurations as follow:
    book:
    categories:
    CAT: description bla bla bla
    DOG: description bla bla bla

java code like:

@Component
@ConfigurationProperties(prefix = "book")
@Data
public class Config {
    private HashMap<String, String> categories;
}

so far everything is is going well,categories contains CAT and DOG.

  1. then i modified the configuration as follow:
    book:
    categories:
    CAT: description bla bla bla
    PANDA: description bla bla bla

expect result is categories contains CAT and PANDA, but result is CAT、DOG and PANDA.

Screenshots

Additional context environment as follow: springcloud Greenwich.SR2 springcloud alibaba 0.9.0.RELEASE NACOS DASHBOARD v1.0.0

fangjian0423 commented 5 years ago

This is the problem of spring cloud config.

hello-zhengzq commented 5 years ago

@fangjian0423 thx, do you know any other issues about this problem's discuss?

fangjian0423 commented 5 years ago

@fangjian0423 thx, do you know any other issues about this problem's discuss?

not found yet.