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

1 · Sunit Katkar · May 25, 2018, 10:56 p.m.
In my previous posts (part 1, part 2) about Saas style multi-tenant web applications, the focus was on how multi-tenancy is achieved.  In this post I will share how tenants can be added without restarting the application.Update 4th Sep 2018Many readers of this blog post have emailed me saying that they run the code but cannot login. This is because they have not populated the user table with username and password for a user nor have they created the necessary databases and schema. In many cases,...