I have an annotated bean with @Component that gets built using <context:component-scan/>, however I wish to set a boolean property after this has been created from a value within a properties file using <context:property-placeholder/>.
1 Answer
Annotate the field with @Value("propertyName").
See related question: Spring @Value annotation in @Controller class not evaluating to value inside properties file
@Value("propertyName"). See this answer: stackoverflow.com/questions/11890544/…