How can I define a Spring bean in an xml config file matching this attribute ?
private List<String[]> durations;
I've different things, but none of them seems to work - I'm getting exception from the parser.
Thank you !
How can I define a Spring bean in an xml config file matching this attribute ?
private List<String[]> durations;
I've different things, but none of them seems to work - I'm getting exception from the parser.
Thank you !
You could try a <list> in <list> in the spring application context. A <list> is converted by spring to either a real java.util.List or an array.
<property name="durations">
<list>
<list>
<value>abc</value>
<value>def</value>
</list>
<list>
<value>abc2</value>
<value>def2</value>
</list>
</list>
</property>