【问题标题】:Can i store shiro configuration in another datastore?我可以将 shiro 配置存储在另一个数据存储中吗?
【发布时间】:2015-06-04 15:11:42
【问题描述】:

是否可以将 shiro 配置存储在 ldap 或 oracle 数据库等数据存储中?

或者只有 shiro.ini 文件是加载和存储配置的方式?

请提出建议。

【问题讨论】:

    标签: apache configuration shiro


    【解决方案1】:

    您可以将 Shiro 配置存储在其他位置。但是,它需要通过实例化 SecurityManager 以编程方式配置 Shiro,然后将各种配置组件(领域、URL、缓存)绑定到新实例化的 SecurityManager。

    http://shiro.apache.org/configuration.html

    此链接虽然特定于 Shiro + Guice,但还涵盖了您可以使用 Shiro 执行的一些手动配置步骤。

    http://shiro.apache.org/guice.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-21
      • 2022-11-02
      • 1970-01-01
      • 2021-04-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-05
      相关资源
      最近更新 更多