BeforeAll will be called before loading the typesafe config file.
BeforeAll will be called before loading the typesafe config file. User can override it with property settings
Config loaded from filesystem
Get the value of a key
Get the value of a key
path expression
the string value at the requested path
ConfigException.Missing
if value is absent or null
ConfigException.WrongType
if value is not convertible to an Enum
Get the value of a key
Get the value of a key
path expression
the Array[String] value at the requested path
Get the value of a key
Get the value of a key
path expression
the nested Config value at the requested path
Get the value of a key
Get the value of a key
path expression
the ConfigObject value at the requested path
Get the value of a key
Get the value of a key
path expression
Option[String] if the key exists, None otherwise
Check if a key is presented in a config
Check if a key is presented in a config
path expression
true if the config contains the key, otherwise false
ConfigLoader loads configurations by using typesafe.com's config library.
You should set the application environment, then ConfigLoad will read the configuration file
[app_env].conf
in your resources directory.Multiple solutions are possible to configure application environment:
- Otherwise you can set the JVM property
app.environment
. For example, by adding-Dapp.environment=local
in your command, ConfigLoader will read the conf filelocal.conf
- You can also create
app.environment
in the default configuration file (example: application.conf, application.properties)confPath
with the name of you configuration file. Then ConfigLoader will read directly the given fileThe priority of the above solution is:
If none of the above parameters are set, ConfigLoader will try to read its fallback configuration file