Skip to content
Example application of setting up Spring Boot + Spring Data JPA application to use multiple datasources
Branch: master
Clone or download

Spring Boot Multi Datasource Example

Proof of concept of a Spring Boot + Spring Data JPA application with multiple datasources.


Java Docker

Running the Demo

The demo uses docker to setup up a Postgres and MySQL database.

The script,, 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.

Using Multiple Datasources

For in-depth explanation of using multiple datasources in an application, be sure to checkout this blog article: LINK REQUIRED

You can’t perform that action at this time.