How to configure multiple DataSources for multitenancy in Hibernate

前端 未结 4 1276
别那么骄傲
别那么骄傲 2020-12-28 11:16

I am trying to add multitenancy to a java application using the separate schema approach as outlined in this webinar

I wanted to know how would I configure multiple

4条回答
  •  眼角桃花
    2020-12-28 11:38

    Use the AbstractRoutingDataSource. See my answer located @ Multiple Entity Manager issue in Spring when using more than one datasource.

提交回复
热议问题