Defining a list in a Spring application context file

后端 未结 4 1906
傲寒
傲寒 2021-01-06 18:09

Can you create a List in a Spring application-context.xml file without using the element?

I have a bean whose constructor takes a Col

4条回答
  •  -上瘾入骨i
    2021-01-06 19:02

    A possible solution for your problem is to pass a single string to your constructor and then parse the list inside the constructor using String.split().

提交回复
热议问题