SpringData

Overview of Spring Data

It is a sub-project of spring, which simplifies database access for users, supports NOSQL and relational databases, and its main goal is to help database access become simpler

NoSQL stores supported by Spring Data:

MongoDB (document database)

Redis (key-value store)

HBase (column family database)

Relational data storage technologies supported by the Spring Data project

JDBC

JPA

 

JPA Spring Data Overview

It is committed to reducing the amount of development of the data access layer (DAO). The only thing that needs to be done is to declare the interface of the persistence layer. The rest is done by Spring Data, and the logical implementation of the method is determined according to the name that conforms to the specification.

 

Getting Started

1. Integrate JPA in spring

2. Configure Spring Data in Spring

3. Declare the interface of the persistence layer, which inherits the Repsoitory interface

4. Declare the required methods in the interface

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325041818&siteId=291194637