I tried to use spring boot logback extensions and spring cloud config feature. What I want to do is use DBAppender and set data source's password from encrypted properties. But I've found it cannot be decrypted in logback-spring.xml.
Is it too early? If I try to retrieve the encrypted value by @Value in CommandLineRunner#run(), it's fine.
Could I use encrypted properties in logback-spring.xml? And how?
I tried to use spring boot logback extensions and spring cloud config feature. What I want to do is use
DBAppender
and set data source's password from encrypted properties. But I've found it cannot be decrypted inlogback-spring.xml
.Is it too early? If I try to retrieve the encrypted value by
@Value
inCommandLineRunner#run()
, it's fine.Could I use encrypted properties in
logback-spring.xml
? And how?