3.2.1 Adding Spring Data JDBC to the build
Spring Data JDBC is available as a starter dependency for Spring Boot apps. When added to the project’s pom.xml file, the starter dependency looks like the following code snippet.
xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jdbc</artifactId>
</dependency>You will no longer need the JDBC starter that gave us JdbcTemplate, so you can remove the starter that looks like this:
xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>You’ll still need a database, however, so don’t remove the H2 dependency.
