I'm using a custom PropertySourceLoader to decrypt encryped properties via setting
org.springframework.boot.env.PropertySourceLoader factory.
It works for setting in application.properties file. For additional files, I normally use @ConfigurationProperties with setting location and it also works. But with 1.4, location parameter seem to be deprecated (it works for now). When I use @PropertySource to lod prop. file, it just load properties without decrypting them.
How can I make sure that all my property files are processed by org.springframework.boot.env.PropertySourceLoader factory? With the location parameter deprecated, I may need it soon.
Read full article from Spring-Boot 1.4 @ConfigurationProperties location deprecation effects · Issue #6220 · spring-projects/spring-boot
No comments:
Post a Comment