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

  Рет қаралды 57,922

Ashok IT

Ashok IT

Жыл бұрын

#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)
👉 Source Code Git Hub Link : github.com/ashokitschool/spri...
✍️✍️ Register Here For Online Training : bit.ly/3Crpgbr
✍️ ✍️ Join Here For Technical Discussions : bit.ly/3iP2KyA
📞 WhatsApp Us : wa.me/+919985396677
💡 Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.
💡 Visit Our Website
For Online Training: ashokitech.com/
☎ WhatsApp Number: wa.me/+919985396677
💡 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:
☎ WhatsApp Number: wa.me/+919985396677
► Website : ashokitech.com/
► Join with us in Telegram : bit.ly/3iP2KyA
► Like us in Facebook : bit.ly/38riDKn
► Follow us in Instagram : bit.ly/3jzEKl8
► Follow us in Twitter : bit.ly/3N85pkw
#howtoconnectwithmultipledatabasesusingspringboot
#howtoconfiguremultipledatasourcesinspringboot
#springboottutorial #springbootfullcourse #springdatajpa
#java #programming #applicationdevelopment #databases #sql #nosql

Пікірлер: 46
@ashokit
@ashokit Жыл бұрын
💡 Welcome to Ashok IT..!! 💡 👉 Register Here For Online Training : bit.ly/3Crpgbr 🔥 Download Android App : bit.ly/3Z2vXcO 🔥 Download IOS App (MyInstitute) : apple.co/3IcEao3 👉 ORG Code For IOS : CNFXJ 🌐 Visit Our Website : ashokitech.com/
@sasikumarramasamy4236
@sasikumarramasamy4236 5 ай бұрын
Well organised content. Clear explaination steps. Gotcha in first view itself.
@nagalakshmi991
@nagalakshmi991 Жыл бұрын
Sir simply superb great sir within 4 minutes' you completed. Thanqq soo much for sharing this video
@ashokit
@ashokit 11 ай бұрын
You're Welcome 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@pratikjha2742
@pratikjha2742 Жыл бұрын
i can't believe there are so less views and likes on this video, soon it will cross millions
@ashokit
@ashokit 11 ай бұрын
Thank You 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@eternalgaming2144
@eternalgaming2144 10 ай бұрын
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.
@Mohamed-uf5jh
@Mohamed-uf5jh Жыл бұрын
Thanks Sir ! very clear and a good explain Wow !!!
@ashokit
@ashokit Жыл бұрын
Most welcome!
@rajendranaik7317
@rajendranaik7317 8 ай бұрын
You are the genuine Java trainer Sir. Others focusing to earn but your content is worthful
@ashokit
@ashokit 8 ай бұрын
Thank You 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@kalyanimvn
@kalyanimvn 3 ай бұрын
Very good.and easily understand.thank yoy
@ashokit
@ashokit 2 ай бұрын
You are welcome
@ErLakhan
@ErLakhan 9 ай бұрын
Can you please highlight how Transactions would work?
@AnubhabKundu
@AnubhabKundu 3 ай бұрын
You are writing in spring boot 2.x application?
@sayakrana5072
@sayakrana5072 4 ай бұрын
Problem is i am able to connect using this but using connection pool i am unable to do it using jndi-name
@kannadasankaruppaiyan1155
@kannadasankaruppaiyan1155 Жыл бұрын
Awesome bro
@ashokit
@ashokit Жыл бұрын
Thankyou...
@anandnandudkar1419
@anandnandudkar1419 7 ай бұрын
Thanks alot!
@ashokit
@ashokit 7 ай бұрын
You're Welcome 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@pranitpawar9837
@pranitpawar9837 10 ай бұрын
Thank you
@ashokit
@ashokit 10 ай бұрын
You're Welcome 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@luisenriquegonzalez5130
@luisenriquegonzalez5130 7 ай бұрын
you are good
@ashokit
@ashokit 6 ай бұрын
Thank You 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@deepakpareek3014
@deepakpareek3014 Жыл бұрын
Ashok sir, if db1 table wants to use db2 tables or suppose to join db1 table to db2 wht would be solution for that
@ashokit
@ashokit Жыл бұрын
Please Contact Our Admin Team:wa.me/+919985396677 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@gobindasuniqueideas8247
@gobindasuniqueideas8247 Ай бұрын
Not working... showing cycle dependency
@avonzo
@avonzo 5 ай бұрын
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.
@ASIFRAZA-qt1tf
@ASIFRAZA-qt1tf 4 ай бұрын
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
@alisonwalker2419
@alisonwalker2419 Жыл бұрын
dataSource or dataSourceClassName or jdbcUrl is required. ??
@ashokit
@ashokit 11 ай бұрын
Please Contact Our Admin Team:wa.me/+919985396677 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@mayureshsohani9913
@mayureshsohani9913 Жыл бұрын
sir can you please share code here. getting compilation errors while creating Builder object
@ashokit
@ashokit 11 ай бұрын
Please Contact Our Admin Team:wa.me/+919985396677 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@danielclaire882
@danielclaire882 11 ай бұрын
I tried your solution but you don't show what's in the entities package. Other classes are also hidden. Do you have a github link where we can get this code and try this? Without the link, the solution doesn't help.
@ashokit
@ashokit 10 ай бұрын
Please Contact Our Admin Team:wa.me/+919985396677 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@lukamaletic9557
@lukamaletic9557 9 ай бұрын
Did you get the code? I was waiting for several days, but nothing...
@nhv2607
@nhv2607 Жыл бұрын
Do you have git hub link please?
@ashokit
@ashokit 11 ай бұрын
Please Contact Our Admin Team:wa.me/+919985396677 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@nguyenminhhieu1295
@nguyenminhhieu1295 11 ай бұрын
I have an issue, my application can not find the EntityManagerFacotyBuilder
@ashokit
@ashokit 10 ай бұрын
Please Contact Our Admin Team:wa.me/+919985396677 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@user-wo6rs5jz1g
@user-wo6rs5jz1g Жыл бұрын
I Tried this already but what if my database is totally dynamic and i need to switch the database in runtime? For example my conn info comes from my admin table where all my clients database conn info are stored. Which ever client uses the appplication it should switch the database on runtime. I was not able to acheive this using dynamic datasource routing and stuffs. Can you help me with that ?
@ashokit
@ashokit Жыл бұрын
Please Contact Our Admin Team:wa.me/+919985396677 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@user-fi1sk6fl6s
@user-fi1sk6fl6s 11 ай бұрын
can you show Respository classes ?
@ashokit
@ashokit 11 ай бұрын
Please Contact Our Admin Team:wa.me/+919985396677 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
@Aigyan471
@Aigyan471 Жыл бұрын
I'm getting this error Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sourceEntityManagerFactory' defined in class path resource [com/example/ecommerceh/configuration/SourceDataConfig.class]: Unsatisfied dependency expressed through method 'sourceEntityManagerFactory' parameter 0: No qualifying bean of type 'org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
@ashokit
@ashokit Жыл бұрын
Please Contact Our Admin Team:wa.me/+919985396677 👉 Subscribe To Our KZbin Channel: bit.ly/41IHJdj
Learn Spring Boot in Simple Way : From  Beginner To Advanced
2:41:37
Pokey pokey 🤣🥰❤️ #demariki
00:26
Demariki
Рет қаралды 8 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 11 МЛН
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 3,6 МЛН
🔥 Spring Boot With Multiple Databases in Hindi
50:32
Learn Code With Durgesh
Рет қаралды 26 М.
remove duplicate words in a string | Java by Ponnam Jay |
9:57
Java concepts by Jay tutorial
Рет қаралды 6 М.
Java Spring Boot 4 Years Experience Interview
36:51
GenZ Career
Рет қаралды 51 М.
Spring Boot Security Tutorial For Beginners | Part-1 | Ashok IT
1:35:50
Spring Boot Tutorial | Full Course [2023] [NEW]
1:37:31
Amigoscode
Рет қаралды 2,6 МЛН