This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Data MongoDB 4.4.1! |
Requirements
The Spring Data MongoDB 4.x binaries require JDK level 17 and above and Spring Framework 6.2.1 and above.
In terms of database and driver, you need at least version 4.x of MongoDB and a compatible MongoDB Java Driver (5.2.x).
Compatibility Matrix
The following compatibility matrix summarizes Spring Data versions to MongoDB driver/database versions. Database versions show server generations 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 | Database Versions |
---|---|---|---|
2024.1 |
|
|
|
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