3 ms·
> How do you pass hierarchical config? In JSON, YAML, TOML, etc., it's easy to group env vars, but how do you do that with env vars? Spring Boot approaches tha
by mdaniel 6y ago
> How do you pass hierarchical config? In JSON, YAML, TOML, etc., it's easy to group env vars, but how do you do that with env vars?
Spring Boot approaches that problem via `SPRING_APPLICATION_JSON` (and likely `SPRING_APPLICATION_YAML` but I haven't personally tried it)
containers:
- name: web
image: whatever
env:
- name: SPRING_APPLICATION_JSON
# language=json
value: |
{"spring": {"logging": {"level": "debug"}}}
- LockAndLol 6y agoGoodness gracious. That's dreadful and exactly what I feared the effect of that rule would be were it followed strictly. It looks like a hacky workaround to an unnecessary problem.