Which version of spring-boot
is compatible with MongoDB 4.0
?
Is there an advisable way to use spring-boot 2.0.5 RELEASE
with MongoDB 4.0
?
Or better to use spring boot 2.0.5
which has mongo driver version 3.6.x
with MongoDB 3.6`?
I think it is not strictly needed to have the latest driver and spring data mongo in order to use a mongodb 4.0; However in the spring data changelog you can see the various changes regarding the driver and DB update, there you can see that in version 2.1.0.RC1
they started adding support for version 4.0 of the database as well as in version 1.10.15.RELEASE
. Latest GA version 2.1.0.RELEASE documentation has updated to MongoDB Java Driver 3.8.2
.
The java driver and Spring will always be a bit behind with new functionalities introduced by each version of MongoDB. So my suggestion if you are starting now is to use the latest 2.1.0.RELEASE
(https://projects.spring.io/spring-data-mongodb/#quick-start)
Edit:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With