Skip to content

Commit 18b0946

Browse files
committed
Update reference docs to use correct MongoClient.
Closes #3666
1 parent cf3681f commit 18b0946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/asciidoc/reference/mongodb.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public class AppConfig {
214214
----
215215
====
216216

217-
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.
217+
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.
218218

219219
[[mongo.mongo-xml-config]]
220220
=== Registering a Mongo Instance by Using XML-based Metadata

0 commit comments

Comments
 (0)