Hello. Such a situation: there is a bin (not written by me, not redefined), in the constructor of which the List
something is transferred. As far as I know in spring
, using the "list"
tag "list"
you can transfer arrays, but I have this situation. What you need to pass? Namely, not an array? Please advise how to proceed.
|
1 answer
<bean id="beanName" class="some.class"> <constructor-arg> <list> <value>1</value> <value>2</value> </list> </constructor-arg> </bean>
- Thank. Are you sure that it is the List that is passed to the constructor and not the array? Or spring itself will resolve this situation? - Vladimir
- And> <list> for what? - Anton Mukhin
- In some cases, with the help of "list", I get an array, not a collection. - Vladimir
|