Skip to content

Commit

Permalink
Update reference docs to use correct MongoClient.
Browse files Browse the repository at this point in the history
Closes #3666
  • Loading branch information
mp911de committed Jun 22, 2021
1 parent 99e5e25 commit db92c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/asciidoc/reference/mongodb.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db92c37

Please sign in to comment.