0

Code:

<bean class="myClass" >
  <property name="myProp" value="${some_string}"..

in myClass:

List<String> myProp;

and 2 setters:

public void setMyProp(String ...)

and

public void setMyProp(List<String> ...)

Spring container always use method that correspond type of property. Does it possible configure in xml file use setter setMyProp(String ...) ?

Rhangaun
  • 1,430
  • 2
  • 15
  • 34
user710818
  • 23,228
  • 58
  • 149
  • 207

0 Answers0