springboot-拦截器redis注入空问题解决 转自:https://blog.csdn.net/liuyang1835189/article/details/81056162 主要问题是在拦截器的配置类里面,配置的类,spring容器无法获取,所以在配置类里注入即可;