public class PropertiesLoader extends Object
Constructor and Description |
---|
PropertiesLoader() |
Modifier and Type | Method and Description |
---|---|
static Properties |
eval(Properties properties)
Return a copy of the properties with 'eval' run on all the values.
|
static Properties |
load()
Provides properties by reading known locations.
|
public PropertiesLoader()
public static Properties load()
Firstly loads from main resources
- application.properties - application.yaml - ebean.properties
Then loads from local files
- application.properties - application.yaml - ebean.properties
Then loads from environment variable EBEAN_PROPS_FILE
Then loads from system property ebean.props.file
Then loads from load.properties
Once the main configuration is read it will try to read common test configuration. This will only be successful if the test resources are available (i.e. running tests).
Loads from test resources
- application-test.properties - application-test.yaml - test-ebean.properties
public static Properties eval(Properties properties)
Copyright © 2019. All rights reserved.