Skip to content

ftahmed/springboot-hibernate-multitenancy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages