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 - (thanks to none other than Juergen Hoeller)

Pretty slick!

No comments: