You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately the square brackets are a requirement for map based binding (see #5315). The best work-around we can suggest so far is to use SPRING_APPLICATION_JSON="..." as an environment variable, with the value being a json structure to process. See org.springframework.boot.env.SpringApplicationJsonEnvironmentPostProcessor for details of how it works.
I use
@ConfigurationProperties
to inject environment properties into a structure of nested objects.Setting env property as follows fails
with following stacktrace
Can be reproduce using following code.
Notice that, setting env property as follows succeed, but raises compatiblity issues across shells
What should be the format of env variable when dealing with Spring Boot Configuration Binding of Map/nested properties ?
Thanks
The text was updated successfully, but these errors were encountered: