I need to create the application which connects to the different DB's based on the input from the user. What is the best solution to achieve this? I did search on Google but I failed to find the resources.
Asked
Active
Viewed 121 times
-2
1 Answers
-1
You clearly haven't put much effort into searching. There are multiple solutions, e.g., https://stackoverflow.com/a/10593773. If you were to use Spring, I'd recommend this: http://www.baeldung.com/spring-data-jpa-multiple-databases

vortigern
- 49
- 6
-
Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – Mark Rotteveel Jul 12 '17 at 07:52