Multi-Tenancy with Spring + Hibernate: “SessionFactory configured for multi-tenancy, but no tenant identifier specified”

前端 未结 6 1539
一个人的身影
一个人的身影 2020-12-13 20:58

In a Spring 3 application, I\'m trying to implement multi-tenancy via Hibernate 4\'s native MultiTenantConnectionProvider and CurrentTenantIdentifierResolver. I see that the

6条回答
  •  盖世英雄少女心
    2020-12-13 21:41

    I had a similar issue when my CurrentTenantIdentifierResolver implementation returned null for the resolveCurrentTenantIdentifier() method

提交回复
热议问题