I am trying to load a properties file into a Spring bean and then inject that bean into a class.
The only part I can\'t get to work seems to be using the @Resourc
Just one more solution using properties placeholder.
The spring context:
The java class where you want inject properties values:
public class ClassWithInjectedProperty { @Value("${props.foo}") private String foo; }