I have a requirement to connect to two databases using spring boot. I can able to connect to two different databases using spring jpa, but I want to connect two databases one with spring jpa and another with spring jdbc
Asked
Active
Viewed 33 times
-3
-
Yes. What do you need to know? – Simon Martinelli Sep 30 '18 at 15:12
-
I want to know how to configure. – Madhava Sep 30 '18 at 15:17
-
https://stackoverflow.com/questions/30337582/spring-boot-configure-and-use-two-datasources – Simon Martinelli Sep 30 '18 at 15:34
-
Possible duplicate of [Spring Boot Configure and Use Two DataSources](https://stackoverflow.com/questions/30337582/spring-boot-configure-and-use-two-datasources) – Simon Martinelli Sep 30 '18 at 15:34
1 Answers
0
I got the solution. I missed to add ComponentScan for JDBC connection configuration and removed @Primary annotation

Madhava
- 9
- 3