From a402395f5c3ffbceb4db2a288a73d0dbb2fda526 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Mon, 17 Feb 2014 16:38:25 +0100 Subject: [PATCH] DATAMONGO-849 - Fixed invalid class reference in readme. Minor sample code optimizations to use MongoClient instead of Mongo. Fixed repository URL. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 11b7c5a24..99475d045 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you'd rather like the latest snapshots of the upcoming major version, use our spring-libs-snapshot Spring Snapshot Repository - http://repo.springsource.org/libs-snapshot + http://repo.spring.io/libs-snapshot ``` @@ -81,7 +81,7 @@ class ApplicationConfig extends AbstractMongoConfiguration { @Override public Mongo mongo() throws Exception { - return new Mongo(); + return new MongoClient(); } @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: ```xml - + - +