In our current XML based configuration, we have setup for multiple repositories like below:
<jpa:repositories base-package="com.grc.riskanalysis.repository.master" transaction-manager-ref="transactionManager"
entity-manager-factory-ref="entityManagerFactory"/>
<jpa:repositories base-package="com.grc.riskanalysis.repository.slave" transaction-manager-ref="transactionManager2"
entity-manager-factory-ref="dynamicEntityManagerFactory"/>
I am trying to migrate this XML configuration to class based configuration, but it is not allowing to have multiple @EnableJpaRepositories annotations. How to achieve this with class based (annotation based) configuration ?