hi all
i try to read properties from a file. my configuration looks like that
then i try to set the value with the @value annotation:PHP Code:<context:property-placeholder location="classpath*:whitelists.properties" ignore-resource-not-found="false" />
but i get the following error:PHP Code:@Value("${email.exclude}")
private String emailWhitelist;
the property is defined in whitelists.properties:PHP Code:Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'email.exclude'
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:173)
at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:125)
so what am i doing wrong?PHP Code:email.exclude=test@test.ch
regards
angela


Reply With Quote
roperty-placeholder location="WEB-INF/whitelists.properties" />
