摘要: 问题: 在Springboot拦截器Interceptor中使用@Resource依赖注入时,发现运行的时候被注解的对象居然是null,没被注入进去 原配置为: 解决: 在Spring添加拦截器之前先自己创建一下这个Spring Bean,这样就能在Spring映射这个拦截器前,把拦截器中的依赖注入 阅读全文
posted @ 2017-06-07 15:17 傅晓芸 阅读(20652) 评论(5) 推荐(1) 编辑