I am struggling in obtaining both of the behaviors requested in the title. 1) I have a property file like this:
my.list=a,b,c
2) If that property is not present I want an empty list
Why the following is throwing me syntax error?
@Value("#{'${my.list}'.split(',') : T(java.util.Collections).emptyList()}")
@Value("#{T(java.util.Arrays).asList('${my.list:}')}")