Browse Source

Update reference docs to use correct MongoClient.

Closes #3666
3.0.x
Mark Paluch 5 years ago
parent
commit
5b502a095f
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1
  1. 2
      src/main/asciidoc/reference/mongodb.adoc

2
src/main/asciidoc/reference/mongodb.adoc

@ -214,7 +214,7 @@ public class AppConfig { @@ -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

Loading…
Cancel
Save