Commit 8e2a6e54 authored by liqin's avatar liqin 💬

bug fixed

parent c33e4d1b
...@@ -70,6 +70,8 @@ public class MyShiroRealm extends AuthorizingRealm { ...@@ -70,6 +70,8 @@ public class MyShiroRealm extends AuthorizingRealm {
* 认证信息.(身份验证) : Authentication 是用来验证用户身份 * 认证信息.(身份验证) : Authentication 是用来验证用户身份
* *
* @param auth * @param auth
* @return
* @throws AuthenticationException
*/ */
@Override @Override
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken auth) throws AuthenticationException { protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken auth) throws AuthenticationException {
......
...@@ -121,7 +121,6 @@ public class ShiroConfig { ...@@ -121,7 +121,6 @@ public class ShiroConfig {
*/ */
@Bean @Bean
public MyShiroRealm myShiroRealm() { public MyShiroRealm myShiroRealm() {
MyShiroRealm myShiroRealm = myShiroRealm();
// //开启全局缓存配置 // //开启全局缓存配置
// myShiroRealm.setCachingEnabled(true); // myShiroRealm.setCachingEnabled(true);
// //启用身份验证缓存,即缓存AuthenticationInfo信息,默认false // //启用身份验证缓存,即缓存AuthenticationInfo信息,默认false
...@@ -177,8 +176,9 @@ public class ShiroConfig { ...@@ -177,8 +176,9 @@ public class ShiroConfig {
/** /**
* 配置Redis管理器 * 配置Redis管理器
* @Attention 使用的是shiro-redis开源插件 *
* @return * @return
* @Attention 使用的是shiro-redis开源插件
*/ */
@Bean @Bean
public RedisManager redisManager() { 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