@ -81,7 +81,7 @@ class ApplicationConfig extends AbstractMongoConfiguration {
@Override
@Override
public Mongo mongo() throws Exception {
public Mongo mongo() throws Exception {
return new Mongo();
return new MongoClient();
}
}
@Override
@Override
@ -94,9 +94,9 @@ class ApplicationConfig extends AbstractMongoConfiguration {
This sets up a connection to a local MongoDB instance and enables the detection of Spring Data repositories (through `@EnableMongoRepositories`). The same configuration would look like this in XML:
This sets up a connection to a local MongoDB instance and enables the detection of Spring Data repositories (through `@EnableMongoRepositories`). The same configuration would look like this in XML: