I have JpaRepository<Person, UUID> which connects to the database.
Is it possible to create a different connection pool to the same repository but from different controllers?
From controller A I want to have a separate connection pool than in controller B.
I think I should create two DataSource which points to same database, but I don't know how to point which controller uses which DataSource. Maybe I should create two Repositories?
AbstractRoutingDataSourcefor that.