java - Shiro's clearCachedAuthenticationInfo is null
问题描述
When shiro executes clearCachedAuthenticationInfo, the following problems occur:
protected void clearCachedAuthenticationInfo(PrincipalCollection principals) {
if (!CollectionUtils.isEmpty(principals)) {
// return null
Cache<Object, AuthenticationInfo> cache = this.getAvailableAuthenticationCache();
if (cache != null) {
Object key = this.getAuthenticationCacheKey(principals);
cache.remove(key);
}
}
}
Caused the session can not be cleared, seeking solutions
解决方案
推荐阅读
- lisp - ECL:文件系统不接受带有扩展字符的文件名
- r - 团体小提琴情节
- java - 如何以编程方式禁用android中其他应用程序的网络使用?
- php - 如何保护对django网站的恶意攻击
- javascript - React Native upload file using fetch, server $_FILES return object, how to access tmp_name
- php - 类名中的空格是否会导致简单 HTML DOM 出现问题?
- java - 关于java类和构造函数
- python - 输出缺少尾随换行符
- javascript - 比较 2 个对象并将键删除/添加到对象 B
- python - 如何在 asyncio 中复制线程代码?