Created
January 21, 2017 14:13
-
-
Save pierrefevrier/0230e6bef4e0fe977648fac4d6ff8638 to your computer and use it in GitHub Desktop.
Inject a list property via Spring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my-property=value1,value2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Value("#{'${my-property}'.split(',')}") | |
private Collection<String> myCollection; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment