跳到主要内容

简介

QWen Flash 中英对照 Introduction

本章介绍 Spring Data repositories 的基本基础以及 LDAP 特有内容。在继续介绍 LDAP 特有内容之前,请确保你已充分理解 Working with Spring Data Repositories 中解释的基本概念。

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

使用 Spring Data Repositories​

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

important

Spring Data repository 文档和您的模块

本章解释 Spring Data repositories 的核心概念和接口。本章信息取自 Spring Data Commons 模块。它使用 Jakarta Persistence API (JPA) 模块的配置和代码示例。如果您想使用 XML 配置,则应将 XML 命名空间声明和要扩展的类型调整为您所使用的特定模块的对应项。“Namespace reference” 介绍了 XML 配置,该配置在所有支持 repository API 的 Spring Data 模块中都受支持。“Repository query keywords” 介绍了 repository 抽象通常支持的查询方法关键字。有关您模块特定功能的详细信息,请参阅本文档中该模块对应的章节。

章节摘要​