'Disable javers audit in application.properties
We are using Javers in our spring boot application and have several application.properties profiles, e.g. for different environments/local testing. In some profiles we would like to disable javers or if that's not possible, not persist the audit by using the default h2 repository.
All our JpaRepositories are annotated with @JaversSpringDataAuditable. If we try to remove the mongoDB database connection from our application.properties, we get a com.mongodb.MongoTimeoutException.
Does anyone know if there is a flag available in the application.properties that could either disable the audit or disable auditing into our mongodb and instead use the default h2 repository?
Solution 1:[1]
That is an interesting case. There is no such flag but it looks like an easy thing to implement. Feel free to open a PR in https://github.com/javers/javers
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Bartek Walacik |
