zoukankan      html  css  js  c++  java
  • No cache or cacheManager properties have been set. Authorization cache cannot be obtained.

    20235 [http-bio-8080-exec-10] INFO  o.a.shiro.realm.AuthorizingRealm - No cache or cacheManager properties have been set.  Authorization cache cannot be obtained. 

    原因是:自定义的Realm文件在继承AuthorizingRealm 时,没有设置cache或者cacheManager属性

    解决办法有两种:

    1.是关闭cache

        <bean id="dbRealm" class="cn.zno.smse.common.security.DataBaseRealm">
            <property name="cachingEnabled" value="true"></property>
            <property name="authenticationCachingEnabled" value="false"></property>
        </bean>

    2.是设置cache或者cacheManager

    必须是实现了 org.apache.shiro.cache.CacheManager 接口的类
  • 相关阅读:
    C#之时间统计
    Unity之屏幕画线
    Unity之坐标转换
    Unity3d之按键
    Unity3d之截图
    [Windows]A盘凭空消失
    函数的多类型传值
    isdigit()
    函数的返回值
    locals()
  • 原文地址:https://www.cnblogs.com/zno2/p/4895235.html
Copyright © 2011-2022 走看看