I am working in Multi Tenant Spring Boot application. I am using the concept of one DB per Tenant approach. I have configured the dynamic database creation and connection. Also those database configurations are stored in a Map. Now I would like to implement an approach to clear DataSource which is idle for long time?
tenantIdand only 1 datasource will be loaded - emotionlessbananastest-while-idleandvalidation-queryproperty - emotionlessbananas