Spring Boot Multiple Datasources

preview_player
Показать описание
This video explains how to configure multiple data sources in Spring Boot. We configure a weather forecast data source and a sport event datasource. Enjoy!

Link to the code:
Рекомендации по теме
Комментарии
Автор

Good tutotrial. Thank you very much. Keep uploading such type of videos.

subhashismohanty
Автор

Hi,
i have spring boot application with all the entities
but i want connect to databases dynamically, it means when i start my application the database not exist and then somebody create the database and connect the application in the runtime without changing the application.properties
thanks

abdallahboucedraya
Автор

Good tutorial Thanks, Question is that In one Db can have many tables which are actually entity and persistenceUnit is an entity also, how can we manage multiple persistenceUnit in a DBConfig class?

zaheerahmed
Автор

Hi Mike,

What is that .of() method can you please explain ?

__nitinkumar__
Автор

great video. How can I make an update to source A and then B and C also get updated? Souce A to be the center

skipa
Автор

thanks so much for your tutorial.
now i have question, if i have more than one entity in both datasource, what changes i need to do and where?

LaVerguenzaDeTwitch
Автор

I want to update if there are any differences in data.is that possible??

praneethyaji
Автор

could you please help us, how to configure spring boot with mysql & mongodb (or aws documentDB).. In addition to that please explain how to work with transaction on both databases.
A use case where a method updates both databases and rollback transaction if something goes wrong..

SrikarRao
Автор

Hello. Coud you please share the code?

norbertoenomoto
Автор

Hello, is possible to join the tables ? Like @OnetoMany ?

Thanks a lot .

ayoubzitrone
welcome to shbcf.ru