Monday, February 23, 2009

Spring Tips 1 - reading encrypted passwords in properties file

Have you ever wondered how you can use encrypted passwords in Java properties files that get loaded into your Spring ApplicationContext via a org.springframework.beans.factory.config.PropertyPlaceholderConfigurer?

Here is the answer - http://forum.springframework.org/showpost.php?s=6d689f6afe0143a9ab3a77bfbb8e017c&p=7965&postcount=6 (thanks to none other than Juergen Hoeller)

Pretty slick!

No comments: