Announcement Announcement Module
Collapse
No announcement yet.
Map with placeholders in Spring context file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Map with placeholders in Spring context file

    In a Spring context file is it possible to configure the values in a map using placeholders? What I want to achieve is something like this:

    <map>
    <entry key="0" value="${value.0}" />
    <entry key="1" value="${value.1}" />
    <entry key="2" value="${value.2}" />
    </map>

    then in a referenced properties file define

    value.0=123
    value.1=234
    value.2=345

    Or should I use value-ref="some-bean" and then put the placeholder in the name attribute of some-bean?
Working...
X