Spring Boot Connect to H2 Database Examples

Published: 29 March 2022
on channel: Code Java
13,656
97

In this video, I'd like to share with you how to write code that connects to H2 database in a Spring Boot application, with Spring JDBC (JdbcTemplate) and Spring Data JPA (with Hibernate).
You will also learn how to connect to H2 database in 3 different mode: in-memory, embedded and client/server.

Software programs: Java Development Kit (JDK); Spring Tool Suite IDE (STS)

Timestamps
0:00 Introduction
0:38 What is H2 Database
1:40 Connect to in-memory H2 Database with Spring JDBC
13:47 Connect to Embedded H2 Database with Spring Data JPA
24:07 Connect to H2 Database in Client Server Mode with Spring Data JPA
33:04 Summary