This application demonstrate how to build a Spring Boot application which can switch between JPA and MongoDB with only configuration changes.
./start_app.sh jpa
This will start PostgreSQL database through a docker image (postgres:9.6
), and then start the application.
If you see following message, it means the application works great:
People found:
Perceval
Karadoc
./start_app.sh mongodb
./gradlew check