在 spring boot 应用程序的 postgresql 中设置搜索路径

问题描述 投票:0回答:0

如何在 postgresql 中设置搜索路径以根据租户 ID 切换到新模式? 我想在运行时解析租户并将请求重定向到特定模式。 我正在开发的应用程序是一个带有 Data JPA 的 spring boot 应用程序。

参考here使用设置的搜索路径在postgresql中执行多租户。

postgresql spring-boot spring-data-jpa multi-tenant
© www.soinside.com 2019 - 2024. All rights reserved.