Open urbim opened 5 years ago
Hi there!
Thumbs up for the feature.
How does com.kumuluz.ee.configuration.file setting affects this feature?
Is it possible to define default config.yml in project and override it with file specified in com.kumuluz.ee.configuration.file setting? I believe com.kumuluz.ee.configuration.file file must have config_ordinal > 100 then?
Enabled usage of multiple file configuration sources. For example now you can define both config.yml and META-INF/microprofile-config.properties at the same time.
Also additional custom file configuration sources can be defined. For example:
config.yml:
config.prod.yml:
config.docker.yml:
The property
example-value
will be456
(additional config files override the default configuration files).Ordinals
The default configuration files will have an ordinal of
100
(101
,102
, ... if more than one are present).Additional configuration files will have an ordinal one higher than the highest ordinal of the default configuration files. If more than one additional configuration files are defined the one with the smallest index will have the highest ordinal.
In the example above, the config.yml will have an ordinal of
100
(lowest priority), the config.docker.yml will have an ordinal of101
and the config.prod.yml will have an ordinal of102
(highest priority).Of course, every ordinal can be manually set by defining the
config_ordinal
property in the configuration source (as per MicroProfile Config specification). For example:config.docker.yml: