Skip to content

Issue with Jsypt spring boot app in resolving decrypted value with placeholder in bean in spring.xml

rgrover0 edited this page Sep 24, 2020 · 1 revision

I have spring boot application and I am loading secret property file from different file location kept at project location .secrets.

And I am instantiating a bean in application-context.xml which has placeholder for a ${token} as property and this token is inside a encrypted.properties file kept inside .secrets folder.

The value get picked up from that file as ENC(abcabsdasdjgha) rather than decrypted version of it.

Basically its not able to resolve the decrypt the value during bean instantiation. But if any other property file has reference to value in encrypted.properties file and if I load that separately it gets resolved.