Multitenancy With Spring Data JPA

Building a multi-tenant system in Spring requires keeping data from one tenancy apart from another. We look how to separate requests into different databases by tenant, and how to validate that the requests belong to the correct tenancy.