Support multi-document configuration properties
AlexFalappa opened this issue · comments
Alessandro Falappa commented
Spring Boot 2.4 added a multi-document interpretation of properties files akin to multi-document YAML. See the reference guide here
Using a special comment (#---
) starts a new document inside the same file. Multi-document configuration properties allow to use multiple profiles in a single configuration file.
This is not an easy task as the Abstract Syntax Tree of configuration properties files is currently single-document and assumes a java.util.Map
behaviour, duplicates override their values.
Alessandro Falappa commented
Created duplicate by mistake