springboot-hibernate-multitenancy /

Filename Size Date modified Message
.settings
src
1.2 KB
New - Initial commit for Spring Boot + Hibernate + Multi-tenancy support
19 B
New - Initial commit for Spring Boot + Hibernate + Multi-tenancy support
964 B
Changed - Renamed artifactId
475 B
Changed - Refactored packages - Partial - parsing multi-tenancy data from yaml
939 B
README.md edited online with Bitbucket
2.5 KB
Changed - Refactored packages - Partial - parsing multi-tenancy data from yaml

README

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

Requirements

  • 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.

Building the artifact

mvn clean package

Running the application from command line

mvn spring-boot:run

Available URLs

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.

Who do I talk to?