question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow manually setting of MongoDB instead of using Autowired details

See original GitHub issue

Currently JaversMongoAutoConfiguration.java forces you to use the autowired MongoClient (and MongoProperties). This is fine if you want to have javers auditing in the same host:DB as your primary mongoDB.

We have a use case where we want to keep the (javers) auditing DB and primary MongoDB separate and for that we want to be able to pass in mongo credentials from the properties file (e.g. with javers.uri) that will cause the autoconfig class to create a MongoClient instead of using the autowired instance.

What are the thoughts on this? Would be happy to submit a pull-request.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
shirishpandharikarcommented, Jun 4, 2019

@bartoszwalacik Have a look at the PR and let me know how it looks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Boot MongoDB Configuration - DevGlan
In this article, we discussed different ways for spring boot MongoDB configuration. We tried configuring it using application.properties file as ...
Read more >
Spring Boot Integration With MongoDB Tutorial
ItemRepository is Autowired, allowing Spring to find it automatically. Spring initializes the Application Context using the @SpringBootApplication ...
Read more >
Spring Boot MongoDB Configuration: Easy Steps - Hevo Data
The Spring Boot MongoDB Configuration is relatively simple and involves few steps for configuration. SpringBoot allows users to interact with ...
Read more >
How do you implement spring boot @Autowired in spring mvc ...
I want to use MongoRepository. So I went to the spring.io website tutorial for MongoDB CRUD operations;. The first problem is that they...
Read more >
Getting Started | Accessing Data with MongoDB - Spring
By default, Spring Boot tries to connect to a locally hosted instance of MongoDB. Read the reference docs for details on pointing your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found