【问题标题】:How to implement spring boot Redis multi tenancy?如何实现 Spring Boot Redis 多租户?
【发布时间】:2020-11-21 02:43:09
【问题描述】:

我在使用 Spring Boot 和 Redis 创建多租户应用程序时遇到问题。我使用了How to implement multitenancy for Redis in spring boot 中提到的相同解决方案。但它没有用。是否有不同的方法可以通过 Spring boot 实现 Redis 多租户。

【问题讨论】:

标签: java spring-boot redis multi-tenant


【解决方案1】:

我通过添加检查数据源是否在缓存中不可用然后从所需的源中提取并创建连接来找到解决方案。还更改了 How to implement multitenancy for redis in spring boot 中提到的显式调用 afterPropertiesSet()

【讨论】:

    猜你喜欢
    • 2020-04-26
    • 2015-01-10
    • 1970-01-01
    • 2018-09-20
    • 1970-01-01
    • 1970-01-01
    • 2017-11-30
    • 2019-01-03
    • 2021-12-11
    相关资源
    最近更新 更多