Open zhuoNy opened 3 years ago
@zhuoNy Thanks for providing the fix. When I built this project I never faced these issues with the versions of Spring Boot, Spring data, etc. The project is still running without any issues in production for a intranet application and works fine. But once again, thanks for fixing the issue.
can you tell me exact order of configuration of all multitenancy classes, because i was having the issue that my tenants were not getting configured and now they are getting configured by your above solution but still application is not able to route dynamically between tenants , its only connecting to masterdatasource instead of tenant.
BUG
FIX
Comment this code in TenantDatabaseConfig.java
Add Annotation on TenantDatabaseConfig.java
Change Annotaion and spectify bean name in DataSourceBasedMultiTenantConnectionProviderImpl.java