New project with Starter Data JPA

We will create a simple Spring Boot Maven project using the following dependencies:

   <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

spring-boot-starter-data-jpa is the Spring Boot starter project for Spring Data JPA. Important dependencies that spring-boot-starter-data-jpa brings in are JTA (Java Transaction API), Hibernate Core, and Entity Manager (Default JPA Implementation). Some of the other important dependencies are shown in the following screenshot:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset