【发布时间】:2016-11-01 01:57:22
【问题描述】:
我正在构建一个多租户应用程序,其中租户数据库配置存储在 Redis 中。根据请求,我将查询 Redis 以获取为该租户配置的数据库和架构,该应用程序是基于 Spring Boot 构建的。
我查看了 spring boot 的 JPA 示例,并在谷歌上搜索了一些合适的解决方案,不幸的是,我找不到。
这真的可以使用此处提供的 JPA 示例吗? https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-data-jpa
请建议我解决此问题的任何其他最佳方法
谢谢
【问题讨论】:
标签: spring postgresql jpa spring-boot spring-data