spring-cloud-alibaba
spring-cloud-alibaba copied to clipboard
logback-spring.xml can't use <springProperty> when using nacos config
我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。 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
Hello, have you solved your problem? I'm in the same situation
SpringBoot 2.4+ using configData, nacos implements it using NacosConfigDataLoader
, it had solved the problem