NutzCN Logo
问答 做shiro,redis,session共享,请求静态文件也会getsession!
发布于 2199天前 作者 qq_142ec148 2018 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
[urls]
/css/**              = anon, noSessionCreation
/js/**               = anon, noSessionCreation
/dist/**             = anon, noSessionCreation
2018-11-08 11:49:33,020 DEBUG org.nutz.plugins.cache.impl.lcache.CachePubSub [lcache.pubsub] channel=LCache:shiro-activeSessionCache, msg=5g0dbv1ae6ibjo9f1f6fr
2018-11-08 11:49:41,749 DEBUG org.nutz.plugins.cache.impl.redis.RedisCache2 [http-nio-8082-exec-1] GET key=shiro-activeSessionCache:0n11uo4t9og1or7is1ve2l09ee
2018-11-08 11:49:41,750 DEBUG org.nutz.plugins.cache.impl.redis.RedisCache2 [http-nio-8082-exec-1] GET key=shiro-activeSessionCache:0n11uo4t9og1or7is1ve2l09ee
2018-11-08 11:49:41,750 DEBUG org.nutz.plugins.cache.impl.redis.RedisCache2 [http-nio-8082-exec-1] GET key=shiro-activeSessionCache:0n11uo4t9og1or7is1ve2l09ee
2018-11-08 11:49:41,750 DEBUG org.nutz.plugins.cache.impl.redis.RedisCache2 [http-nio-8082-exec-1] GET key=shiro-activeSessionCache:0n11uo4t9og1or7is1ve2l09ee
2018-11-08 11:49:41,750 DEBUG org.nutz.plugins.cache.impl.redis.RedisCache2 [http-nio-8082-exec-1] GET key=shiro-activeSessionCache:0n11uo4t9og1or7is1ve2l09ee
2018-11-08 11:49:41,751 DEBUG org.nutz.plugins.cache.impl.redis.RedisCache2 [http-nio-8082-exec-1] GET key=shiro-activeSessionCache:0n11uo4t9og1or7is1ve2l09ee
2018-11-08 11:49:41,751 DEBUG org.nutz.plugins.cache.impl.redis.RedisCache2 [http-nio-8082-exec-1] GET key=shiro-activeSessionCache:0n11uo4t9og1or7is1ve2l09ee
2018-11-08 11:49:41,751 DEBUG org.nutz.plugins.cache.impl.redis.RedisCache2 [http-nio-8082-exec-1] GET key=shiro-activeSessionCache:0n11uo4t9og1or7is1ve2l09ee
2018-11-08 11:49:41,751 DEBUG org.nutz.plugins.cache.impl.redis.RedisCache2 [http-nio-8082-exec-1] GET key=shiro-activeSessionCache:0n11uo4t9og1or7is1ve2l09ee
2018-11-08 11:49:41,751 DEBUG org.nutz.plugins.cache.impl.redis.RedisCache2 [http-nio-8082-exec-1] GET key=shiro-activeSessionCache:0n11uo4t9og1or7is1ve2l09ee
2018-11-08 11:49:41,752 DEBUG org.nutz.plugins.cache.impl.redis.RedisCache2 [http-nio-8082-exec-1] GET key=shiro-activeSessionCache:0n11uo4t9og1or7is1ve2l09ee
5 回复

只是不会create,没说不会get

是这个url配置问题吗?

哦,静态文件多会get好多次。cpu占用蛮大的。只能静态文件分离了?

可以继承ShiroFilter做些判断哦

添加回复
请先登陆
回到顶部