Spring (3.1): Given a property file with multi line value (of course the real value is much larger):
requestStatuses=select sysdate \
from dual
I have set up Spring as described:
<util:properties id="sql_lookup_data_repo"
location="classpath:sql_lookup_data_repo.properties"/>
And used as described:
@Value("#{sql_lookup_data_repo.requestStatuses}")
public void setRequestStatuses(String requestStatuses) {
this.requestStatuses = requestStatuses;
}
At first sight it seems to be working BUT only the first line of property value is read.
When spring is starting up it is reading the file correctly (debugged). It seems that it is lost when evaluating SpEL expression.
Is it possible to use this spring functionality with multi line property file values and how?
Already checked: