Spring Boot demo accompanying source code for blog post at http://tech.asimio.net/2017/01/17/Multitenant-applications-using-Spring-Boot-JPA-Hibernate-and-Postgres.html
- Java 8
- Maven 3.3.x
- Postgres server to create a couple of databases or Docker host to start a couple of asimio/db_dvdrental Postgres containers.
mvn clean package
mvn spring-boot:run
curl -v -H "X-TENANT-ID: tenant_1" "http://localhost:8800/demo"
curl -v -H "X-TENANT-ID: tenant_2" "http://localhost:8800/demo"
should result in successful responses.
- ootero at asimio dot net
- https://www.linkedin.com/in/ootero