Can you please tell me how to use Spring Javaconfig to directly load/autowire a properties file to a java.util.Properties field?
Thanks!
Later edit - st
There is also this approach for injecting properties directly using xml configurations. The context xml has this
and the java class just uses
@javax.annotation.Resource private Properties myProps;
Voila!! it loads. Spring uses the 'id' attribute in xml to bind to the name of variable in your code.