I need to write a setter for an array using spring's value annotation so it will come from properties file.
private String[] aList;
public String[] getAList()
{
return aList;
}
@value("a:b")
public String[] setAList(String aString)
{
aList = aString.Split(":");
}
I am not sure if this is the right way to do?
Will I get the right value from string?
Thanks,