Is there a way to specify a default property value in Spring XML?
Posted
by Rog
on Stack Overflow
See other posts from Stack Overflow
or by Rog
Published on 2010-03-25T06:26:49Z
Indexed on
2010/03/25
6:33 UTC
Read the original article
Hit count: 355
We are using a PropertyPlaceholderConfigurer to use java properties in our Spring configuration (details here)
eg:
<foo name="port">
<value>${my.server.port}</value>
</foo>
We would like to add an additional property, but have a distributed system where existing instances could all use a default value. Is there a way to avoid updating all of our properties files, by indicating a default value in the Spring config for when there isn't an overriding property value defined?
© Stack Overflow or respective owner