Java Spring Boot - JPA - H2 In Memory Database Configuration - Persisting Entity

preview_player
Показать описание

Follow //CodefForgeYT on:
Рекомендации по теме
Комментарии
Автор

Thank you Maaan!! You did what i have been looking for so long. Please keep doing your job! It is really valuable!!

Aqwsaful
Автор

the tutotial is absolute clear and understandable.. I could build and run the project with textpad, and in command prompt. Thank you Very Much!

hoatieu
Автор

Thank you, I learned a new way of writing from your video. I am very appreciated it.

changtai
Автор

is it possible to use hikari with an in memory database like h2 just to test the pooling?

securethebag
Автор

Hi!
Please advise why did you decide to place fileDb in './data/fileDb' ?
Could it be in folder?
Is there any difference?

JaanM-yi
Автор

Thanks your help me in this moment, is a great help for me

jonathancolorado
Автор

Thank u so much i was having a lot of troubles to do this connect thing you'rea savior

chaimaeramdani
Автор

Your explanation is so good, thank you very much!

jevgenijkornev
Автор

also, if you use SpringSecurity, in your WebSecurity.configure method to configure HttpSecurity, add (if your h2 console path is default "/h2-console", if not change to your path, in this video, it would be "/h2/**".

dinobulja
Автор

Hi!!

It works for me with jdbc:h2:mem:test

but when i try to store the database in a file there is no table att all when i login in h2??

Its a spring boot app with html form so i dont add throu java code.

Any suggestion?

Worexon
Автор

When I start the project, Hibernate makes all the tables and connection automatically. It works fine.
if I run the query INSERT INTO ROLES (NAME) VALUES ('USER') first time manually in the h2 console, it inserts USER with ID 1 correctly.
But if I run the query INSERT INTO ROLES (NAME) VALUES ('ADMIN') after the application restart, it inserts ADMIN with ID 33 instead of 2.
The third run starts with 65 and so on.
How could I achieve, that the ID continues from where it finished at the previous application run?

azermirzayev
Автор

I still can't reach the console in the browser. I have also tried configure HttpSecurity and all that. What is the issue?

swellmar
Автор

hello codeForgeYT,
Your videos are mindblowing, actually im making a small project can you help me regarding that project

rajshekar
Автор

I think you forgot to add property for h2Dialect use?

dinobulja
Автор

I couldn't connect to database via h2-console, I got this error : Database "mem:salam" not found, either pre-create it or allow remote database creation (not recommended in secure environments) [90149-214] 90149/90149 (Help). How can I fix it?

ibrahimkamal
Автор

Exception in thread "restartedMain"
at Method)
at
at
at
at
Caused by: No qualifying bean of type 'com.repositories.DiscoRep' available
at
at
at
at
... 5 more

viviannedemoraes
welcome to shbcf.ru