|
@@ -56,8 +56,8 @@ public class MongodbDetector implements ApplicationRunner {
|
|
}
|
|
}
|
|
|
|
|
|
try {
|
|
try {
|
|
- Method getDbMethod = mongoTemplateClass.getClass().getMethod("getDb");
|
|
|
|
- Object mongoDatabaseObject = getDbMethod.invoke(getDbMethod);
|
|
|
|
|
|
+ Method getDbMethod = mongoTemplateClass.getMethod("getDb");
|
|
|
|
+ Object mongoDatabaseObject = getDbMethod.invoke(mongoTemplateObject);
|
|
Method getNameMethod = mongoDatabaseObject.getClass().getMethod("getName");
|
|
Method getNameMethod = mongoDatabaseObject.getClass().getMethod("getName");
|
|
Object dbName = getNameMethod.invoke(mongoDatabaseObject);
|
|
Object dbName = getNameMethod.invoke(mongoDatabaseObject);
|
|
LOG.info("mongo.db=" + dbName);
|
|
LOG.info("mongo.db=" + dbName);
|