public class MongoConfigExample extends Object
group1.config_source must have: prop1->value-from-group1
group2.config_source must have: prop1->value-from-group2
group3.config_source must have: prop2->value-from-group3
config_source must have: propRoot->value-from-root
NOTE: A document in certain collection comes in format:
{
"config" :
[ {
"propName" : "prop_name_1",
"propValue" : "prop_value_1"
},
...
{
"propName" : "prop_name_N",
"propValue" : "prop_value_N"
}
]
}
| Constructor and Description |
|---|
MongoConfigExample() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Main method of example of mongo config.
|
public static void main(String[] args)
args - program argumentsCopyright © 2017–2021. All rights reserved.