This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Data MongoDB 5.0.4!spring-doc.cn

Requirements

The Spring Data MongoDB 5.x binaries require JDK level 17 and above and Spring Framework 7.0.6 and above.spring-doc.cn

Compatibility Matrix

Please visit OSS Support for detailed Spring Data support timelines.
For the MongoDB Server Support Policy please refer to the MongoDB Software Lifecycle Schedule.spring-doc.cn

The following compatibility matrix summarizes Spring Data versions and their required minimum MongoDB client version. Database versions show server generations that pass the Spring Data test suite, older server versions might have difficulties dealing with new/changed commands. You may 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-doc.cn

Spring Data Release Train Spring Data MongoDB Minimum Driver Version Tested Database Versions

2025.1spring-doc.cn

5.0.xspring-doc.cn

5.6.xspring-doc.cn

6.x to 8.xspring-doc.cn

2025.0spring-doc.cn

4.5.xspring-doc.cn

5.5.xspring-doc.cn

6.x to 8.xspring-doc.cn

2024.1spring-doc.cn

4.4.xspring-doc.cn

5.2.xspring-doc.cn

4.4.x to 8.xspring-doc.cn

2024.0spring-doc.cn

4.3.xspring-doc.cn

4.11.x & 5.xspring-doc.cn

4.4.x to 7.xspring-doc.cn

2023.1spring-doc.cn

4.2.xspring-doc.cn

4.9.xspring-doc.cn

4.4.x to 7.xspring-doc.cn

Relevant Changes in MongoDB 4.4

Relevant Changes in MongoDB 4.2