In this tutorial we will learn how to create a basic application using Spring Boot CLI. We will then import the application into an IDE to create a sample application which stores some data which is later retrieved by the SpringApplication class.
In order to enable H2 In-Memory Database in Spring Boot applications you have to include the “h2” dependency in your initializer. For example: spring init -dweb,jpa,h2 demo-h2 The H2 Database provides a web interface called H2 Console to see the data. You can enable the h2 console in the src/main/resources/application.properties # Enabling H2 Console spring.h2.console.enabled=true … Read more