Open
Description
Currently application.properties
and application.yaml
files are loaded from the classpath and the first match wins. This makes it hard to bundle common properties into jar files. It would be nice if we could find a way for jars to also contribute properties without needing to implement a EnvironmentPostProcessor
.
There are a few things we need to be careful of:
- What order to we load the resources and how do we make sure a developer can override a contributed value
- We don't want to increase startup time (for example by doing a full classpath search)
- We can't break back-compatibility
- We need to be mindful of
spring.config.import=classpath: