@Component
public class AuthToRedis
extends java.lang.Object
| Constructor and Description |
|---|
AuthToRedis() |
| Modifier and Type | Method and Description |
|---|---|
static void |
excludeAuth(java.lang.String[] resourceIds)
将过滤的权限储存到redis
RESOURCE_EXCLUDE_MAP
|
void |
setauthService(com.mbap.mybatis.redis.RedisClient redisClient,
com.mbap.mybatis.ty.service.BaseDao baseService,
org.springframework.data.redis.core.StringRedisTemplate redisTemplate) |
static void |
updateAuth(java.lang.String[] resourceIds)
储存资源权限到redis
|
@Autowired
public void setauthService(com.mbap.mybatis.redis.RedisClient redisClient,
com.mbap.mybatis.ty.service.BaseDao baseService,
org.springframework.data.redis.core.StringRedisTemplate redisTemplate)
@Async public static void updateAuth(java.lang.String[] resourceIds)
@Async public static void excludeAuth(java.lang.String[] resourceIds)