1

If yes, how?

I am writing a archival project where old data from one database has to be moved to another. For this, I need to connect to two database in a springboot project.

Any pointers would be appreciated.

1 Answer 1

3

You need to provide two different DataSources (two different beans).

Take a look at http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-two-datasources

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.