first:
  second: i,like,fish
 
the yaml config above can be processed when following code is executed
List<String> values = environment.getProperty("key", (List<String>) List.class) 
however, following yaml config cannot be processed by the code snippet above
first:
  second:
    - i
    - like
    - fish