Skip to content

Environment.getProperty() method cannot process list items #35179

@mammadyahyayev

Description

@mammadyahyayev
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions