Spring Boot + Spring JPA + multiple data sources
Suppose you faced with the challenge of having two data sources in your Spring Boot application. Official documentation tells you how to configure them. But how to use them for your JPA layer is not that clear. Here is my quick guide about it.