Open
Description
Hello together,
we may all knows that we can set up to a JDBCTemplate
a Datasource
, so a JDBCTemplate
knows which datasource it has: JDBCTemplate JdbcTemplate = new JDBCTemplate(dataSource)
Whats about with a CrudRepository
? How can a CrudRepository
knows to which database it should communicate to ? It is using the default one, all time. If we setup a second database in Configuration, a CrudRepositry
will use the first and primary one.
Is there an example of using CrudRepository with two databases ? I can't find one in web.
I post it also in stack overflow here
Thank you.
Activity