Skip to content

Spring Boot 2 JPA Hibernate with database per tenant with dynamic configuration of tenants, secured by Spring Security

License

Notifications You must be signed in to change notification settings

yangyundu/multitenancy-dynamic-tenant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adding tenants without application restart in SaaS style multi-tenant web app with Spring Boot 2 and Spring Security 5

SaaS application style multi-tenancy with database per tenant using Spring Boot 2 + JPA + Hibernate + Spring Security 5. This app is built with MySQL as the database. It can be adapted to use any other database like Microsoft SQL Server.

Note: This app reads the tenant information from a separate database table and does not require an application restart when new tenants are added.

This repository contains code which accompanies the blog post Adding tenants without application restart in SaaS style multi-tenant web app with Spring Boot 2 and Spring Security 5

Getting Started

This is a typical maven project. Download the source as a zip file or checkout the code and import as an Existing Maven project in your IDE.

Prerequisites

  • Java 8
  • Spring Boot 2
  • MySQL
  • Not mandatory, but you can use any suitable IDE like Spring STS

Authors

License

This project is licensed under the Apache License - see the LICENSE.md file for details

Request

You are free to fork this repository, but please drop me a note at [email protected]

About

Spring Boot 2 JPA Hibernate with database per tenant with dynamic configuration of tenants, secured by Spring Security

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 95.0%
  • HTML 4.9%
  • CSS 0.1%