SyntaxFix
Write A Post
Hire A Developer
Questions
@Value("#{'${your.elements}'.split(',')}") private Set<String> stringSet;
yml file:
your: elements: element1, element2, element3
There is lot more you can play with spring spEL.