Load the configuration from classpath using the default behavior of typesafe Config.
Load the configuration from classpath using the default behavior of typesafe Config.
The order of loading is:
1. system properties 2. all application.conf files on the classpath 3. all application.json files on the classpath 4. all application.properties files on the classpath 5. all reference.conf files on the classpath.
Configuration values take precedence in that order.
the parsed, combined, and resolved configuration.
https://github.com/lightbend/config#standard-behavior for more details.
Load the configuration from the file system location configLocation
.
Load the configuration from the file system location configLocation
.
If configLocation
is a directory, it is traversed in breadth-first search (BFS) order provided by hadoop file system.
Only file names ending in '.conf', '.json', or '.properties' are processed.
If multiple entries are given, all entries must be on the same file system.
All processed config files are merged and files encountered later overwrite settings in files processed earlier.
The order of loading is:
1. system properties 2. all '.conf' files in BFS order 3. all '.json' files in BFS order 4. all '.properties' files in BFS order
Configuration values take precedence in that order.
The file extension of any encountered file forces a corresponding config syntax:
- '.conf' forces HOCON syntax - '.json' forces JSON syntax - '.properties' forces Java properties syntax
configuration files or directories containing configuration files.
a resolved Config merged from all found configuration files.
com.typesafe.config.ConfigSyntax