I have properties file config.properties where are stored some application wide properties. And I have imported it using property placeholder:
In addition to the other answer here, I have also seen xml properties loaded directly as named properties files:
The spring file contains:
This can then be accessed via springs expression language as:
"#{myXmlProps['key1']}"
And injected into Strings in classes with:
@Value("#{myXmlProps['key1']}")
private String aValueForKey1;