I have a dynamic application.yml file and I would like to use nested lists and maps.
I know that it doesn't work out of the box, but maybe someone found a solution for it.
My goal is it that I can define something like that:
user:
  test:
    - peter
    - willi
  test2:
    - helloA: abc
      helloA2: def
    - helloB: 123
      helloB2: 345
-
@Value("${user.test}")
private String[] names;
@Value("${user.test2}")
private List<Map> test;