Does java spring recognize method signature? -


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 use method correspond type of property. possible configure in xml file use setter setmyprop(string ...) ?


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -