Hello,
I couldn't find what I need in other topics so I hope someone could help me...
I'm trying to load a list of String using @Value annotation and a properties file.
My java code looks like :
and my properties file :Code:@Value("${my.list.of.strings}") private List<String> myList;
But all I am getting is a java list containing only one String which is "1;2;3;4;5"Code:my.list.of.strings=1;2;3;4;5
How could I make this work ? Is that even possible ?
Thank you in advance
Peipsy


Reply With Quote