1

I'm trying to replace some projects to use Spring Data JDBC instead of using JdbcTemplate.

Now, I'd like to use it for multiple DataSources, how can I configure it in Spring Data JDBC?

Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
tkmknr
  • 31
  • 2

1 Answers1

0

There is currently no support for working with two or more DataSources. You'd have to manually redo what the JdbcRepositoryFactoryBean does.

Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
  • would it be possible to make that constructor public? Or at least protected? I've hit the wall hard with this last week and I can't easily solve this. Don't want to over-shadow classes during class-loading etc. – zeratul021 Jan 18 '19 at 10:02
  • Back-linking the issue for future reference: https://jira.spring.io/browse/DATAJDBC-321 – zeratul021 Jan 21 '19 at 20:58