spring-cloud-alibaba icon indicating copy to clipboard operation
spring-cloud-alibaba copied to clipboard

logback-spring.xml can't use <springProperty> when using nacos config

Open ooooo-youwillsee opened this issue 2 years ago • 3 comments

我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。 We recommend using English. If you are non-native English speaker, you can use the translation software.

Which Component eg. Nacos config

Is your feature request related to a problem? Please describe.

nacos config :

a.b = 1

logback-spring.xml :

<springProperty scope="context" name="x" source="a.b" defaultValue="2"/>

but I get value of 'x' is 2

Describe the solution you'd like

see apollo implementation , ApolloApplicationContextInitializer

ooooo-youwillsee avatar Aug 06 '21 02:08 ooooo-youwillsee

Hello, have you solved your problem? I'm in the same situation

IT-GoldFish avatar Aug 10 '22 01:08 IT-GoldFish

SpringBoot 2.4+ using configData, nacos implements it using NacosConfigDataLoader, it had solved the problem

ooooo-youwillsee avatar Aug 10 '22 01:08 ooooo-youwillsee