This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Data MongoDB 4.3.0!

Requirements

The Spring Data MongoDB 4.x binaries require JDK level 17 and above and Spring Framework 6.1.7 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

2023.1

4.1.x

4.9.x

7.0.x

2023.0

4.1.x

4.9.x

6.0.x

2022.0

4.0.x

4.7.x

6.0.x

2021.2

3.4.x

4.6.x

5.0.x

2021.1

3.3.x

4.4.x

5.0.x

2021.0

3.2.x

4.1.x

4.4.x

2020.0

3.1.x

4.1.x

4.4.x

Neumann

3.0.x

4.0.x

4.4.x

Moore

2.2.x

3.11.x/Reactive Streams 1.12.x

4.2.x

Lovelace

2.1.x

3.8.x/Reactive Streams 1.9.x

4.0.x

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