Repositories

本章介绍了 Spring Data 存储库和 MongoDB 特性的基本基础。在继续了解 MongoDB 特性之前,请确保您对基本概念有透彻的了解。

This chapter explains the basic foundations of Spring Data repositories and MongoDB specifics. Before continuing to the MongoDB specifics, make sure you have a sound understanding of the basic concepts.

Spring Data 存储库抽象的目标是显著减少为各种持久性存储实现数据访问层所需的样板代码量。

The goal of the Spring Data repository abstraction is to significantly reduce the amount of boilerplate code required to implement data access layers for various persistence stores.