...
/Getting Started with Spring Data JPA
Getting Started with Spring Data JPA
Learn how to add Spring Data JPA to the application.
We'll cover the following...
Adding Spring Data JPA
To add Spring Data JPA to the project, we need to add the following dependencies to the Maven pom.xml
:
Press + to interact
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-jpa</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-validation</artifactId></dependency><dependency><groupId>io.github.wimdeblauwe</groupId><artifactId>jpearl-core</artifactId><version>${jpearl.version}</version></dependency>
-
spring-boot-starter-data-jpa
includes the JPA specification and Hibernate. -
spring-boot-starter-validation
includes Hibernate Validator which allows to express and validate application constraints. -
...