Back Forum Reply New

Why setting a placeholderPrefix in PropertyPlaceholderConfigurer?

Hi folks,

I was wondering why one would like to set a placeholderPrefix while configuring a PropertyPlaceholderConfigurer? I know that if I set one, say $secureCfg{, then I would address my property as $secureCfg{prop.name} but I can't understand the utility of this attribute. Could someone explain this to me pls?

Thanks.

M.

You can have multiple PPCs and configure different prefixes/suffixes for them in order to not clash to each other.

Gotcha, thanks
¥
Back Forum Reply New