Multi tenancy springboot

Asked

Viewed 181 times

1

How do spring keep tenantID present in all requests? I would like to point out that my idea for using multitenant would be as follows www.nomeDoSistema.com.br/nomeDaEmpresa/ and for each company name the system will fix a single bank for this customer. How can I do that?

  • This is my daily handling problem. Unfortunately I just shut down the computer to give the guidelines. Generally speaking, I have a TenantRoutingDatasource Hikaicp managing the tenant route to the Datasource. I keep the tenant in a ThreadLocal properly encapsulated and have a Filter that will set the appropriate tenant.

  • Take a look at this article and see if it helps your problem: https://medium.com/@joeclever/using-Multiple-datasources-with-spring-boot-and-spring-data-6430b00c02e7

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.