Commit 8e2a6e54 authored by liqin's avatar liqin 💬

bug fixed

parent c33e4d1b
......@@ -70,6 +70,8 @@ public class MyShiroRealm extends AuthorizingRealm {
* 认证信息.(身份验证) : Authentication 是用来验证用户身份
*
* @param auth
* @return
* @throws AuthenticationException
*/
@Override
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken auth) throws AuthenticationException {
......
......@@ -121,7 +121,6 @@ public class ShiroConfig {
*/
@Bean
public MyShiroRealm myShiroRealm() {
MyShiroRealm myShiroRealm = myShiroRealm();
// //开启全局缓存配置
// myShiroRealm.setCachingEnabled(true);
// //启用身份验证缓存,即缓存AuthenticationInfo信息,默认false
......@@ -177,8 +176,9 @@ public class ShiroConfig {
/**
* 配置Redis管理器
* @Attention 使用的是shiro-redis开源插件
*
* @return
* @Attention 使用的是shiro-redis开源插件
*/
@Bean
public RedisManager redisManager() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment