No cache or cacheManager properties have been set. Authorization cache cannot be obtained.
来源:互联网 发布:smg淘宝店 编辑:程序博客网 时间:2024/06/06 12:52
参考:点击打开链接
问题:使用Shiro授权时控制台在取得权限的时候老是打印出:org.apache.shiro.realm.AuthorizingRealm:248 - No cache or cacheManager properties have been set. Authorization cache cannot be obtained.
原因是:没有配置权限缓存,但是在不配置权限缓存时需要怎么解决呢?
解决方法:关闭授权缓存域,把authorizationCachingEnabled设置为false。
<bean id="roleBaseAuthorizingRealm" class="com.company.web.RoleBaseAuthorizingRealm"><property name="adminService" ref="adminService"/> <property name="authorizationCachingEnabled" value="false"/></bean>
1 0
- "No cache or cacheManager properties have been set. Authorization cache cannot be obtained."
- No cache or cacheManager properties have been set. Authorization cache cannot be obtained.
- 关于vc调试出现One or more breakpoints cannot be set and have been disabled解决方法。
- 烦人的 One or more breakpoints cannot be set and have been disabled.……
- 关于vc调试出现One or more breakpoints cannot be set and have been disabled解决方法
- 于vc调试出现One or more breakpoints cannot be set and have been disabled
- (zz)(VC 6++) One or more breakpoints cannot be set and have been disabled
- 关于vc调试出现One or more breakpoints cannot be set and have been disabled解决方法
- 关于vc调试出现One or more breakpoints cannot be set and have been disabled
- vc调试出现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
- 关于vc调试出现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。。。。。
- 解决“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...
- 烦人的 One or more breakpoints cannot be set and have been disabled.……
- WebView,嘿嘿,懒人专用,直接复制粘贴就能用,frame可调
- openssl生成RSA公私钥对
- MYSQL必知必会读书笔记 第十和十一章 使用函数处理数据
- clion 使用技巧
- tomcat与web程序结构
- No cache or cacheManager properties have been set. Authorization cache cannot be obtained.
- Linux下Nagios的安装与配置
- Android消息传递机制----Handler
- rem使用
- pyqt4,QTableWidget 动态添加控件,添加图片,右键菜单选项
- 能走多远不取决于一个人改正多少个缺点,而在于是否最大限度发挥长处
- 移植u-boot到mini2440--board_init_r 分析
- JAVA中类型后面跟三个点的使用问题
- flink cep 性能测试