Requirements
The Spring Data MongoDB 4.x binaries require JDK level 17 and above and Spring Framework 6.1.13 and above.
In terms of database and driver, you need at least version 4.x of MongoDB and a compatible MongoDB Java Driver (4.x or 5.x).
Compatibility Matrix
The following compatibility matrix summarizes Spring Data versions to MongoDB driver/database versions. Database versions show the highest supported server version that pass the Spring Data test suite. You can use newer server versions unless your application uses functionality that is affected by changes in the MongoDB server. See also the official MongoDB driver compatibility matrix for driver- and server version compatibility.
Spring Data Release Train | Spring Data MongoDB | Driver Version | Server Version |
---|---|---|---|
2024.0 |
|
|
|
2023.1 |
|
|
|
2023.0 |
|
|
|
2022.0 |
|
|
|
2021.2 |
|
|
|
2021.1 |
|
|
|
2021.0 |
|
|
|
2020.0 |
|
|
|
Neumann |
|
|
|
Moore |
|
|
|
Lovelace |
|
|
|
Relevant Changes in MongoDB 4.4
-
Fields list must not contain text search score property when no
$text
criteria present. See also$text
operator -
Sort must not be an empty document when running map reduce.
Relevant Changes in MongoDB 4.2
-
Removal of
geoNear
command. See also Removal ofgeoNear
-
Removal of
eval
command. See also Removal ofeval