How to Create Annotation based Spring Application

Introduction We will see how to create annotation based Spring application or annotation based configuration in Spring application. We will use here H2 database to perform database activities using Spring JDBC Template. We will not use any XML configuration here or zero XML configuration. We will also see how to run this stand-alone Spring application using main method. This application is totally Java based configuration. If you want you can also convert this application as web based application using Spring framework.

Continue

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 In-memory Database with Spring Boot 2.1. What is an in-memory database? An in memory database is created when an application starts up and destroyed when the application is stopped. Using…

Continue

Integrate H2 In-memory Database with Spring Boot 2.1 and build using Gradle

This tutorial will show you how to integrate in-memory H2 database with Spring Boot 2.1 and build using Gradle tool. We will see here simple JPA example to understand how it works. What is an in-memory database? An in memory database is created when an application starts up and destroyed when the application is stopped. Using in memory database has lots of advantages such as:

Continue