Couchbase Support
Spring Data 对 Couchbase 的支持包含广泛的功能:
Spring Data support for Couchbase contains a wide range of features:
-
Spring configuration support with Java-based
@Configuration
classes. -
The
CouchbaseTemplate
andReactiveCouchbaseTemplate
helper classes that provide object mapping between Couchbase collections 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 that is extensible to support other metadata formats.
-
Automatic implementation of imperative and reactive
Repository
interfaces including support for custom query methods.
对于大多数数据导向的任务,你可以使用 [Reactive]CouchbaseTemplate
或 Repository
支持,这两种支持都使用丰富的对象映射功能。Spring Data Couchbase 针对各种 API 中的对象使用了与 Couchbase Java SDK 中发现的命名约定一致的命名约定,以便熟悉它们,并且,以便你可以将你的现有知识映射到 Spring API。
For most data-oriented tasks, you can use the [Reactive]CouchbaseTemplate
or the Repository
support, both of which use the rich object-mapping functionality.
Spring Data Couchbase uses consistent naming conventions on objects in various APIs to those found in the Couchbase Java SDK so that they are familiar and so that you can map your existing knowledge onto the Spring APIs.