Spring Boot - How to Setup H2 Database

preview_player
Показать описание
This video shows how to setup H2 database for Spring Boot Application.
H2 is an open-source lightweight Java database. It can be embedded in Java applications or run in the client-server mode. H2 database can be configured to run as in-memory database, which means that data will not persist on the disk.
#phcodegyan #springboot #h2database #javaprogramming #javacoding #database #inmemory #relationaldatabase #java #springframework #initializr #springdevelopers #tutorials

Spring Boot Basics Playlist

Create Spring Boot Project Using Spring Initializr

Create a Spring Boot Hello World Application

Install Spring Tools Suite 4 on Windows || STS installation
Рекомендации по теме
Комментарии
Автор

Thank you, , you solved my error i was struggling for 5 hrs 😊

vinisha
Автор

yes it was really helped me in connection

richaprakash
Автор

Tables are created in H2 db sir, if created then tell me where it created

naveennaidu
Автор

how to resolve this error? Dependency 'com.h2database:h2:2.1.214' not found

jmquilario
Автор

Hi, Im facing an issue: applications automatically shutdons when I try to start it up
This is part of the console log:

Closing JPA EntityManagerFactory for persistence unit 'default'
[2m2023-02-14 23:06:39.125 [0;39m [33m WARN [0;39m [35m21576 [0;39m [2m--- [0;39m [2m[ionShutdownHook] [0;39m [0;39m [2m: [0;39m Invocation of destroy method failed on bean with name Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL)

I added that property DB_CLOSE_ON_EXIT=FALSE to the url, but Im still having that issue

PabloQ