org.apache.shiro.realm.AuthorizingRealm - No cache or cacheManager properties have been set. Authorization cache cannot be obtained.
2015-02-27 10:02
399 查看
项目中用spring shiro来处理权限的问题,但是启动的时候会打印如下日志
检查了basicRelam配置如下
BasicRealm继承自AuthorizingRealm
根据提示信息可以判断未给BasicRealm指定cacheManager,所以修改如下
org.apache.shiro.realm.AuthorizingRealm - No cache or cacheManager properties have been set. Authorization cache cannot be obtained.
检查了basicRelam配置如下
<bean id="basicRealm" class="com.ebon.platform.realm.BasicRealm" />
BasicRealm继承自AuthorizingRealm
根据提示信息可以判断未给BasicRealm指定cacheManager,所以修改如下
<bean id="basicRealm" class="com.ebon.platform.realm.BasicRealm" > <property name="authorizationCacheName" value="shiro-authorizationCache"/> <property name="cacheManager" ref="shiroCacheManager"/> </bean>
相关文章推荐
- org.apache.shiro.realm.AuthorizingRealm - No cache or cacheManager properties have been set. Auth...
- "No cache or cacheManager properties have been set. Authorization cache cannot be obtained."
- One or more breakpoints cannot be set and have been disabled.Execution will stop at the beginning of the program
- One or more breakpoints cannot be set and have been disabled
- VC++6.0调试出错 One or more breakpoints cannot be set and have been disabled...
- 关于vc调试出现One or more breakpoints cannot be set and have been disabled解决方法
- Debug error:"One or more breakpoints cannot be set and have been disabled.Execution will stop at the
- VC6.0 debug下断点调试 提示“One or more breakpoints cannot be set and have been disabled...”
- One or more breakpoints cannot be set and have been disabled...
- vc不能debug,提示One or morebreakpoints cannot be set and have been disabled。。。。。
- 关于vc调试出现One or more breakpoints cannot be set and have been disabled解决方法
- 烦人的 One or more breakpoints cannot be set and have been disabled.……
- One or more breakpoints cannot be set and have been disable.Execution will stop at the begining of the programe
- one or more breakpoints cannot be set and have been disabled
- One or more breakpoints cannot be set and have been disabled...
- 为什么无法设置断点?提示信息:One Or More Breakpoints cannot be set and have been disabled.execution will stop at the beginning
- 【转】[转]One or more breakpoints cannot be set and have been disabled...
- 关于vc调试出现One or more breakpoints cannot be set and have been disabled
- one or morebreakpoints cannot be set and have been disabled解决方案
- 解决“One or more breakpoints cannot be set and have been disabled.…… ”