nacos-spring-boot-project icon indicating copy to clipboard operation
nacos-spring-boot-project copied to clipboard

parts of nacos configuration properties annotated with @NacosValue refresh dynamically not work

Open reputat10n opened this issue 2 years ago • 0 comments

env: spring boot 2.2.5.RELEASE + nacos-config-spring-boot-starter 0.2.8-bugfix

i tried debug,as these codes at NacosValueAnnotationBeanPostProcessor.onApplicationEvent(event)

image

environment.getProperty(key) -> PropertySourcesPropertyResolver.getProperty(key, Class<T> targetValueType)

image

why and how to resolve this problem

reputat10n avatar Mar 03 '22 02:03 reputat10n