We use the code below to inject Spring beans with properties from a properties file.
I have done this and it has worked.
Properties props = PropertiesLoaderUtils.loadAllProperties("my.properties"); PropertyPlaceholderConfigurer props2 = new PropertyPlaceholderConfigurer(); props2.setProperties(props);
That should work.