In the spring of this configuration file it is very common.
A, context: property-placeholder greatly facilitated our load some configuration, especially in terms of database
Also facilitate a number of settings in our system:
二、ignore-unresolvable
If a plurality of modules in the same context occurs: the property-placeholder, location properties file, Could not resolve placeholder 'key' in string value $ {key} runtime occurs. The reason is that in a first loading context: scans all the bean property-placeholder, and some which occur bean second context: property-placeholder placeholder properties introduced by $ {key}, at this time there is no load The second property-placeholder, it can not parse $ {key}.
solve:
An approach, may be combined into one by a plurality of property-placeholder module initializes together.
Method two, add ignore-unresolvable = "true", this can not be resolved placeholder may occur when loading the first property-placeholder be ignored.