H2 Database Spring Boot - How to connect and configure an in-memory H2 database in Spring Boot

preview_player
Показать описание
In this tutorial, you will learn everything you need to know to connect and configure an in-memory H2 database in Spring Boot. I will also walk you through what you need to look out for if you are using Spring Security in your application.

🔗Resources & Links mentioned in this video:

👋🏻Connect with me:

Рекомендации по теме
Комментарии
Автор

Sacrified some mins to see this video and saved a lot of debugging hours. Thanks for the content.

zelalemgizachew
Автор

I have no idea why do you have only 17K subs ... are people blind! I'm glad I found your channel.

maxjustmax
Автор

I haven't even finished watching it and I can already say: Beautiful video! I've seen others (channels) very good ones, but this one is sensational. It explains exactly what is happening and why. This is giving me unprecedented autonomy, which I would take a good amount of practice and reading time to achieve. Thank you!🤩

sharine
Автор

Amazing video❤ was struggling for two days then found this master piece.

MUSLIMWORLD
Автор

God... I haven't seen anything better, sir. Thank you for sharing your expertise.

Burborted
Автор

No doubts! The greatest video about this topic. Simple and straight to the point. 🙂 Congratulations and thanks for sharing it.

fabricio.entringer
Автор

Thanks for sharing such crisps videos.

debashishbhattacharjee
Автор

oh man, thank you im intern and im studying for this on 4 days. finally i do that thanks to you

berkcr
Автор

Thank you for this video. So much valuable information packed in 1 video. Concisely presented. 💯

abhishekomprakash
Автор

I must say thank you for all your effort Dan. This is a very clear and effective video

caginbektas
Автор

Wow, this clears my doubts why you configure the data source that way in your previous tutorials. ❤

cyper
Автор

Good work, i'm new to spring & this is better than paid courses.

magicianam
Автор

Thanks, this was really clear and helpful for an exercise im doing :)

andreaang
Автор

Thanks for the video, it's a really helpful tutorial

Alexander-vov
Автор

Hey Dan,
Thanks for your really helpful videos. It would be really nice if you make a video on how to configure databases like Oracle, MySQL or MongoDB etc any one will work.
Thanks

PrashantRanjan
Автор

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

securethebag
Автор

how does spring repository know about the presence of H2 table

hassanmohamed-izun
Автор

Hi, thank you for this tutorial!!
i tried to follow when i do new Book(null, "str") i have error that id connot be null
if i pass an id i have this error : Caused by: After saving the identifier must not be null

ameensalem
Автор

Hi Dan,
As I can see in SB configs EmbeddedDatabase implements shutdown method (which sends SHUTDOWN command to the DB) and SB registres that as destroy method when no Hikari is used.
But if we use Hikari+H2 Hikari knows nothing about whether it is an Embedded datasource or not.
If we use memory-based H2 I suppose it is not a problem.
But what about file-based H2?
What do you think is it safe to use file-based H2 with Hikari? Will it close the file properly?

alexandern
Автор

Why this h2 console configuraton is not working with mvcMatchers?

MvcMatcher as I understand is better version of antMatcher because it matches not only for example /demo but also /demo/ and /demo.html

In My project
mvcMatchers("/h2-console/**) is not working but if i have the antMatchers("/h2-console/**) as you, everything is fine, but why?

kacpersyrnik