如下方式使用Spring EL
@Value("#{'${my.list.of.strings}'.split(',')}") private List<String> myList;
然后在.properties中这样配置
my.list.of.strings=A , B , C , D