Posted in Spring Core Spring JDBC

Integrate H2 In-memory Database with Spring

Introduction This tutorial will show you how to integrate in-memory H2 database with Spring. We will see here simple example to understand how it works. Here we will use Spring JDBC API to perform database activities. You can use this example with Spring based applications, such as, Spring Core, Spring MVC etc. You may also like to read Integrate H2…

Continue Reading... Integrate H2 In-memory Database with Spring
Posted in Gradle Spring Boot Spring JPA

Integrate H2 In-memory Database with Spring Boot

Introduction This tutorial will show you how to integrate in-memory H2 database with Spring Boot and build using Gradle/Maven tools. You will see here simple Spring Boot Data JPA example with Spring REST API to understand how it works. H2 is in-memory database, so it does not have persistence capability once your Spring Boot application is closed. But you can…

Continue Reading... Integrate H2 In-memory Database with Spring Boot