I am using spring 3.1 with spring profiles to load the beans. In my app context file, I load the properties like :
This bug about multiple property placeholders might relate to your problem: https://jira.spring.io/browse/SPR-9989
When using multiple
PropertyPlaceholderConfigurerin conjunction with@Valueannotation and default value for placeholders syntax (ie${key:defaultValue}), only the firstPropertyPlaceholderConfigureris used. If this configurer does not contain the desired value, it falls back to@Valuedefault even if the secondPropertyPlaceholderConfigurercontains the value.Affects Version/s: 3.1.3