Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

@Value注解有默认值的情况下,配置中心不生效 #48

Closed
TimChen676 opened this issue Oct 29, 2020 · 0 comments
Closed

@Value注解有默认值的情况下,配置中心不生效 #48

TimChen676 opened this issue Oct 29, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@TimChen676
Copy link

问题描述:
20201029-102958(eSpace)
@value注解中,形如@value("${xxx:defaultValue}")的情况,配置中心无法覆盖defaultValue的值,导致属性最后的值是defaultValue

出现的版本号:
dubbo-servicecomb config 1.3.1

可能的原因:
spring-projects/spring-framework#14623
dubbo-servicecomb-config-center中ConfigurationSpringInitializer继承了PropertyPlaceholderConfigurer ,spring可能不支持多个PropertyPlaceholderConfigurer

@liubao68 liubao68 added the bug Something isn't working label Oct 29, 2020
@liubao68 liubao68 added this to the 2.0.1 milestone Oct 29, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 29, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 29, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 31, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 31, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 31, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants