Java Config for Multi-tenancy

If anyone has configured below multi-tenancy using Java config/ Spring bean config, provide some insights how to configure and route the requests to respective process engine. Also multi-tenant schema setup using java config.

separate process engine per tenant where each tenant data is in a separate schema/database

Can we instantiate multiple process engines in one springboot application (microservice) and each process engine will have own schema to serve different tenants?