@Value is returning null as I am trying to read properties.
Below is my configuration:
<util:properties
id="applicationProps"
location="/WEB-INF/spring/application.properties" />
Below is the code that I have in a custom tag:
private @Value("#{applicationProps.staticResourceUrl}") String staticResourceUrl;
If the props file
application.propertiescontained a property calledstaticResourceUrlthen import it via:and use it via: