How to work with two ✌ databases in Single spring boot application? #database #postgres #mysql

preview_player
Показать описание
Hello everyone , hope you are doing good . In this video we will learn how to work with dual databases in a Spring Boot application. Discover the benefits of using multiple databases, configure and define data sources, perform DB operations with Spring Data JPA.

Hope that you people like the video , it takes a lot of efforts to Oversimplify the Topics and represent on the video . Hoping that my Channel gets your support .

Like , share and comment .

Would love to read your Comments and answer back .

Do Support the channel by Hitting the SUBSCRIBE Button .

Thank You . Happy Learning .
Рекомендации по теме
Комментарии
Автор

Hi Ramanpreet, You have wonderfully exaplined this concept.

yashchourasia
Автор

Hi. If one database is down, then automatically the spring boot application should fetch data from second database. Can I know how to configure this type of configuration

saireddy
Автор

Any working references or docs/videos on using MongoDB and PostgreSQL together in one project?

sanjanat
Автор

Hi I have two app in single project, one connected to mysql and one to H2, so according to your video two db will active, according to api request, it will fetch data, am i right?

vaddishirdinath
Автор

In your application.properties is it necessary to set custom data sources when working with two types of database? Trying to use mongodb and h2.

tobyhamilton
Автор

Hi Raman, I observed that both of the db config classes has 3methods. I am wondering why is it required to use the @primary annotation when you have already specified the bean names. Can we not inject those beans when required using the @Qualifier annotation so as it to help spring differentiate ? Would to hear your thoughts on this

niloychakravorty
Автор

What abou if I keep teache.save and student.save un a general transaction to guarantee the process.

wilfredomartel
Автор

Hello Ramanpreet, i have some doubt, how to link a specific database configuration to a specific Repository because if we specify same basepackage for both config how we will get to know which db is providing data(if same type of database is used), so can you explain how can we map configuration with the Repository.

eternalgaming
welcome to shbcf.ru