spring-framework icon indicating copy to clipboard operation
spring-framework copied to clipboard

Environment.getProperty() method cannot process list items

Open mammadyahyayev opened this issue 5 months ago • 0 comments

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

mammadyahyayev avatar Jul 09 '25 12:07 mammadyahyayev