From db92c375028c4f92634d4eab5ad2f5ee864e0e29 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 22 Jun 2021 14:36:49 +0200 Subject: [PATCH] Update reference docs to use correct MongoClient. Closes #3666 --- src/main/asciidoc/reference/mongodb.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/asciidoc/reference/mongodb.adoc b/src/main/asciidoc/reference/mongodb.adoc index 7e0ef5132..fb35bb655 100644 --- a/src/main/asciidoc/reference/mongodb.adoc +++ b/src/main/asciidoc/reference/mongodb.adoc @@ -214,7 +214,7 @@ public class AppConfig { ---- ==== -To access the `com.mongodb.client.MongoClient` object created by the `MongoClientFactoryBean` in other `@Configuration` classes or your own classes, use a `private @Autowired Mongo mongo;` field. +To access the `com.mongodb.client.MongoClient` object created by the `MongoClientFactoryBean` in other `@Configuration` classes or your own classes, use a `private @Autowired MongoClient mongoClient;` field. [[mongo.mongo-xml-config]] === Registering a Mongo Instance by Using XML-based Metadata