Is it possible to assign a specific DataSource to a @Repository?
DataSource
@Repository
I\'d like to create a test environment where in general I want to use the
The DataSource and JpaRepository are both tied to an EntityManager. You will have to segregate the repositories into separate packages for your requirement to work.
JpaRepository
EntityManager
Here is an example:
... ...