[问题] spring session with redis

楼主: wadechen (忙)   2016-07-26 22:48:59
请问一下各位前辈
现有旧专案希望导入 spring session
想把 HttpSession 集中管理于redis上
照着doc上的设定实作后 会跳出
org.springframework.beans.factory.NoSuchBeanDefinitionException:
No bean named 'springSessionRepositoryFilter' is defined
这个bean照说明书上描述的话, 应该是在applicationContext.xml中就会注入
我看该xml也正常 parsing了, 但还是会跳出这个错误, 谷歌了一下
发现很多人都遇到这样的问题, 只是没有看到一个解决方案...
不知道这里有没有前辈遇到过这个问题, 跪求帮忙..orz 感谢感谢
作者: RoySu1215 (Roy)   2016-07-27 00:38:00
你的web.xml有设好filter吗?
作者: kentyeh (kent)   2016-07-27 08:58:00
我没用过redis,我用的是hazelcast,你可以用http://bit.ly/2a9YwSP产生专案出来比对,cluster的说明请参考http://bit.ly/2aIMdZO
楼主: wadechen (忙)   2016-07-27 09:25:00
web.xml有设定好filter, 但是仍然无法解决刚刚使用 spring 提供 用annotation的方式注入bean后现在已经可以正常使用 至于用xml config无法使用的原因我之后再追查看看 谢谢两位

Links booklink

Contact Us: admin [ a t ] ucptt.com