moved warning message so its only printed if the host isn't specified
This commit is contained in:
@@ -89,8 +89,9 @@ public class MongoFactoryBean implements FactoryBean<Mongo>, InitializingBean,
|
|||||||
// apply defaults - convenient when used to configure for tests
|
// apply defaults - convenient when used to configure for tests
|
||||||
// in an application context
|
// in an application context
|
||||||
if (mongo == null) {
|
if (mongo == null) {
|
||||||
logger.warn("Property mongo not specified. Using default configuration");
|
|
||||||
if (host == null) {
|
if (host == null) {
|
||||||
|
logger.warn("Property host not specified. Using default configuration");
|
||||||
mongo = new Mongo();
|
mongo = new Mongo();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user