-
-
Notifications
You must be signed in to change notification settings - Fork 368
Legacy MongoClient conflict when declared explicitly as Bean #962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, consider contributing a PR with the mongo client version bump |
@nishkarsh unfortunately, |
@bartoszwalacik You are right, springboot autoconfigure still provides the legacy MongoClient as of now. However, I checked the commit here that seems to have the change in The main reason I had raised this issue was because JaVers fails when a new |
Ok, so for now, dedicated MongoClient config will be based on the new |
released in 5.9.0 |
Uh oh!
There was an error while loading. Please reload this page.
I am working on a spring boot project with JaVers integrated along with
spring-boot-starter-data-mongodb
.I had to configure
MongoClient
for some encryption settings for which I need to explicitly create it as a Bean. The newer version of mongo java driver (since version 3.7) recommends that theMongoClient
is created usingMongoClients
class which creates an instance ofcom.mongodb.client.MongoClient
(source). When this happens, the application produces an error as JaVers is expecting a legacy version of MongoClient.This forces me to stay with the legacy MongoClient that doesn't have a nice builder to accept various settings.
The text was updated successfully, but these errors were encountered: