mybatis / spring-boot-starter

MyBatis integration with Spring Boot
Apache License 2.0
4.14k stars 1.79k forks source link

Multi-tenant spring boot api - does not change the tenant #1022

Open deniscpereira opened 3 weeks ago

deniscpereira commented 3 weeks ago

I have a spring-boot API with methods adopted with @Async and uses multi-tenant. After using it for a while I have some messages table or view does not exist sequence does not exist...

Everything leads me to believe that it is in the wrong tenant.

How can we handle this since it is a multi-tenant and multi-thread scenario