An example implementation of Spring Boot R2DBC REST API with PostgreSQL database.
- Java
- Maven
- PostgreSQL
- Docker
- Spring Boot 2.4.1.RELEASE
- Spring Data R2DBC
- PostgreSQL Driver
- Junit 5
- Run postgresql locally (or from docker)
- Create two databases
- postgres (main database)
- test (dummy database for integration testing)
- Run Spring Boot App
- Run spring-boot build image plugin
mvn spring-boot:build-image -DskipTests
- Run generated docker image
docker run -it -p8080:8080 --network="host" reactive-postgres:0.0.1-SNAPSHOT