Proof of concept of a Spring Boot + Spring Data JPA application with multiple datasources.
Java Docker
The demo uses docker to setup up a Postgres and MySQL database.
The script, run.sh
, can be used to start up the database containers and Spring Boot application.
multi-spring-datasources.postman_collection.json
contains saved Postman requests for testing the application.
For in-depth explanation of using multiple datasources in an application, be sure to checkout this blog article: LINK REQUIRED