Spring Boot : How to connect with multiple databases using Spring Data JPA

preview_player
Показать описание
#springboot #multipledatabases #springdatajpa

In this video you can learn how to develop spring boot application which can connect with multiple databases using Spring Data JPA.

In the application we have configured below 2 databases.

Database-1 : Embedded H2 Database
Database-2 : MySQL Database (AWS RDS)

💡 Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.

💡 Visit Our Website

💡 About Ashok IT :

Ashok IT is the No.1 quality training institute in India for the candidates who want to build their future in Information Technology. We are into online training, class room training, corporate training and one to one training with more passion and dedication. Ashok IT aims in providing best quality realtime oriented trainings on C, C++, Java, Spring , Spring REST, Spring Cloud, Microservices, Python, DJango, .Net, Angular, React JS, Salesforce, , Testing, Android, Docker, Kubernates, Manual Testing, Selenium and Digital Marketing.

-----------------------------------------------------------------------------------

💡 Our Online Training Features

🎈 Training with Real-time Working Professionals
🎈 Industry Matching use cases
🎈 Live Coding
🎈 Real-time Environment
🎈 Class Notes
🎈 Doubts Clarifications in Each Session

-----------------------------------------------------------------------------------

💡 Contact details:

#howtoconnectwithmultipledatabasesusingspringboot
#howtoconfiguremultipledatasourcesinspringboot
#springboottutorial #springbootfullcourse #springdatajpa
#java #programming #applicationdevelopment #databases #sql #nosql
Рекомендации по теме
Комментарии
Автор

💡 Welcome to Ashok IT..!! 💡


👉 ORG Code For IOS : CNFXJ

ashokit
Автор

Short. Precise. To the point. Great job!

phoneix
Автор

Well organised content. Clear explaination steps. Gotcha in first view itself.

sasikumarramasamy
Автор

Sir simply superb great sir within 4 minutes' you completed. Thanqq soo much for sharing this video

nagalakshmi
Автор

i can't believe there are so less views and likes on this video, soon it will cross millions

pratikjha
Автор

Thanks Sir ! very clear and a good explain Wow !!!

Mohamed-ufjh
Автор

You are the genuine Java trainer Sir.
Others focusing to earn but your content is worthful

rajendranaik
Автор

Very good.and easily understand.thank yoy

kalyanimvn
Автор

Hello Ashok, i have a problem statement - suppose i want to use 2 rdbms database one as primary and other as backup database so if i want to persist all entities to both database and retrieve the data only from primary database via repository how to configure, can you please help.

eternalgaming
Автор

Can you please highlight how Transactions would work?

ErLakhan
Автор

Why @primary is used in db1 configuration class and not in db2 congratulation class

ADITILATKAR
Автор

Very good explanation but username and password hard coded values how to do secret

kartheeknaidu
Автор

Problem is i am able to connect using this but using connection pool i am unable to do it using jndi-name

sayakrana
Автор

Ashok sir, if db1 table wants to use db2 tables or suppose to join db1 table to db2 wht would be solution for that

deepakpareek
Автор

You are writing in spring boot 2.x application?

AnubhabKundu
Автор

dataSource or dataSourceClassName or jdbcUrl is required. ??

alisonwalker
Автор

In case of same class name, User which is defined in two different
com.ashokit.read.User
Another one is
com.ashokit.write.User

In this case database understand which User class to use

ASIFRAZA-qttf
Автор

This should not work as there are conflicting names used. Same name used in the same Spring Context in multiple places. Application (Spring framework) will present an error and would not start.

avonzo
Автор

sir can you please share code here. getting compilation errors while creating Builder object

mayureshsohani
Автор

Not working... showing cycle dependency

gobindasuniqueideas