I need to load some properties into a Spring context from a location that I don\'t know until the program runs.
So I thought that if I had a PropertyPlaceholderConf
The problem here is that you're trying to configure a property place holder using property placeholder syntax :) It's a bit of a chicken-and-egg situation - spring can't resolve your ${my.location} placeholder until it's configured the property-placeholder.
This isn't satisfactory, but you could bodge it by using more explicit syntax: