Spring boot application that connects to two dataSources
- Spring Boot
- Spring Data JPA
- MySql DB
- Hibernate
- Maven
Java 1.8 or greater, Spring boot 2.0 or greater, Maven, IntelliJ or Eclipse
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes:
- Create two databases ('user', 'booking') for users db & bookings db.
- import the project in IntelliJ or Eclipse.
- Or build the project using maven to get a jar file.
- Use any rest client like postman to test the end points for users & bookings.
These are the articles that helped me complete this application:
- Baeldung blog - Spring JPA – Multiple Databases
- Devglan blog - Spring Boot Multiple Database Configuration Example