I have properties file which has a key company.id
like this
company.id=key1=value1,key2=value2,key3=value4
Now, I want to store key-value pair directly in map using @Value of spring
//For example,
//for key in properties file
//company.list=comp1,comp2
@Value("#{'${proposal.provience}'.split(',')}")
List<String> companyList;
the above will directly converts to List.
Please tell me what to write here without using other libraries like Guava
@value(some logic here)
HashMap<String,String> map;