Assume I'm having a large list of values aa bb cc dd ee ff gg etc., which I need to pass as a constructor in spring
If I need to configure as string array it is easy in spring as we can just specify the values as comma separated as aa, bb, cc etc.,
If I need to configure as list I need to do like below
<bean name="myBean" class="MyClass">
<constructor-arg>
<list>
<value>aa</value>
<value>bb</value>
<value>cc</value>
<value>dd</value>
</list>
</constructor-arg>
</bean>
When the number of values increased it occupies a huge lines and it looks ugly.
Could some one please help me how we can pass large values as list in string as constructor?
list for the Dozer Mapping, currently it looks
like
Later getting the string. I'm splitting with comma separator and
storing it in a list. instead i want to pass the parameter as
a list. Could you please help me? – Kathir Jul 20 '12 at 11:40