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