redis在Interceptor里面注入为null
来源:7-27 点赞与取消点赞功能前后端联调

qq_21_7
2018-11-25
老师,我在使用Interceptor里面使用redis时,@Autowared注入为空。但是在userLogin里面的redis就有值
然后我就在Interceptor里面试一试继承RedisBasicController这个类,也不能注入。
写回答
2回答
-
qq_21_7
提问者
2018-11-25
可以被扫描到。我登录的时候,在拦截器里面,redis就直接报nullpount了
022018-11-25 -
风间影月
2018-11-25
继承controller肯定是不对的,看看你的拦截器有没有被扫描到
00
相似问题