FileSystem Config Source#
This Config Source loads configuration values for each file found in a directory. Each file corresponds to a single property, where the file name is the configuration property name and the file content the configuration value.
For instance, if a directory structure looks like:
foo/ |__num.max |__num.size
FileSystem Config Source will provide 2 properties:
Nested directories are not supported.
The same mapping rules as defined for environment variables are applied, so the
FileSystem Config Source will search
for a given property name
- Exact match (
- Replace each character that is neither alphanumeric nor _ with _ (
- Replace each character that is neither alphanumeric nor _ with _; then convert the name to upper case (
The following dependency is required in the classpath to use the
FileSystem Config Source:
The configuration property
smallrye.config.source.file.locations sets the directory paths to look up the files. It
accepts multiple locations separated by a comma and each must represent a valid URI to a directory.