Allow manually setting of MongoDB instead of using Autowired details
See original GitHub issueCurrently 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:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

fixed in 5.6.0 see https://javers.org/documentation/spring-boot-integration/#starter-repository-configuration
@bartoszwalacik Have a look at the PR and let me know how it looks.