Тэги:
#springboot #spring_data_jpa #multiple_databases_connection_using_spring_boot #how_to_configure_multiple_databases_in_spring_boot #spring_data_jpa_with_multiple_databases_connection #spring_boot_with_data_jpa_tutorial #spring_boot_application_development #how_to_configure_multiple_data_sources #how_to_connect_with_multiple_databases_using_spring_boot #spring_boot_with_mysql_database_example #spring_boot_with_h2_database_example #ashokit #ashok_it #ashokit_spring_boot #microservicesКомментарии:
you are good
ОтветитьThanks alot!
ОтветитьYou are the genuine Java trainer Sir.
Others focusing to earn but your content is worthful
Can you please highlight how Transactions would work?
Ответить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.
ОтветитьThank you
ОтветитьI have an issue, my application can not find the EntityManagerFacotyBuilder
Ответить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.
Ответитьcan you show Respository classes ?
Ответитьsir can you please share code here. getting compilation errors while creating Builder object
ОтветитьAshok sir, if db1 table wants to use db2 tables or suppose to join db1 table to db2 wht would be solution for that
Ответить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 ?
Ответить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: {}
Awesome bro
ОтветитьdataSource or dataSourceClassName or jdbcUrl is required. ??
Ответитьi can't believe there are so less views and likes on this video, soon it will cross millions
ОтветитьThanks Sir ! very clear and a good explain Wow !!!
ОтветитьDo you have git hub link please?
ОтветитьSir simply superb great sir within 4 minutes' you completed. Thanqq soo much for sharing this video
Ответить