close

Spring Data MongoDB

3.4.2

Spring Data for MongoDB is part of the umbrella Spring Data project which aims to provide a familiar and consistent Spring-based programming model for new datastores while retaining store-specific features and capabilities.

Introduction

The Spring Data MongoDB project provides integration with the MongoDB document database. Key functional areas of Spring Data MongoDB are a POJO centric model for interacting with a MongoDB DBCollection and easily writing a Repository style data access layer.

Features

  • Spring configuration support using Java based @Configuration classes or an XML namespace for a Mongo driver instance and replica sets.

  • MongoTemplate helper class that increases productivity performing common Mongo operations. Includes integrated object mapping between documents and POJOs.

  • Exception translation into Spring’s portable Data Access Exception hierarchy

  • Feature Rich Object Mapping integrated with Spring’s Conversion Service

  • Annotation based mapping metadata but extensible to support other metadata formats

  • Persistence and mapping lifecycle events

  • Low-level mapping using MongoReader/MongoWriter abstractions

  • Java based Query, Criteria, and Update DSLs

  • Automatic implementation of Repository interfaces including support for custom query methods.

  • QueryDSL integration to support type-safe queries. GeoSpatial integration

  • Map-Reduce integration

  • JMX administration and monitoring

  • CDI support for repositories

  • GridFS support

Spring Initializr

Quickstart Your Project

Bootstrap your application with Spring Initializr.

Documentation

Each Spring project has its own; it explains in great details how you can use project features and what you can achieve with them.
3.4.2 CURRENT GA Reference Doc. API Doc.
4.0.0-SNAPSHOT SNAPSHOT
4.0.0-M5 PRE Reference Doc. API Doc.
3.4.3-SNAPSHOT SNAPSHOT
3.3.7-SNAPSHOT SNAPSHOT
3.3.6 GA Reference Doc. API Doc.
3.2.12-SNAPSHOT SNAPSHOT
3.2.11 GA Reference Doc. API Doc.
Branch Initial Release End of Support End Commercial Support *
3.4.x
2022-05-01 2023-05-01 2024-09-01
3.3.x
2021-11-12 2022-11-12 2024-03-12
3.2.x
2021-04-14 2022-04-14 2023-08-14
3.1.x
2020-10-28 2021-10-28 2023-02-28
3.0.x
2020-05-12 2021-05-12 2022-09-12
2.2.x
2019-09-30 2020-09-30 2022-01-30
2.1.x
2018-09-21 2019-09-21 2021-01-21

OSS support

Free security updates and bugfixes with support from the Spring community. See VMware Tanzu OSS support policy.

Commercial support

Business support from Spring experts during the OSS timeline, plus extended support after OSS End-Of-Life.
Publicly available releases for critical bugfixes and security issues when requested by customers.

Future release

Generation not yet released, timeline is subject to changes.

About commercial support (*)

This page shows the current state of project releases and does not define the commercial support policy. Please refer to the official support policy for more information.

A few examples to try out: