What is spring data JPA?
SPIRNG Data JPA is a set of simplified JPA development frameworks provided by spring, which, in accordance with the agreed "method naming rules", writes the DAO layer interface, enabling access and manipulation of the database without writing the interface implementation. It also provides a lot of functionality beyond crud, such as paging, sorting, complex queries, and so on.
Spring Data JPA can be understood as a re-encapsulation abstraction for the JPA specification, and the underlying is implemented using Hibernate's JPA technology.
Interface contract naming rules:
Instance:
Springboot integrates spring data JPA in just two steps:
First step: import maven coordinates
Step Two: Configure JPA information in the YML configuration file
Reference Blog: https://www.cnblogs.com/smiler/p/9210255.html
Preliminary understanding of SPRING-DATA-JPA