I am configuring my Spring Boot application with an application.yml file:
foo:
bar: foobar
foolist:
- bar: foobar1
baz: foobaz1
- bar: foobar1
baz: foobaz1
I can easily set the foo.bar value with an environment variable, e.g.
export FOO_BAR=value
How can I set values of the foolist entrie? FOOLIST[0]_BAR
is not a valid identifier and FOOLIST_0_BAR
does not work.