springboot自定义过滤器

springboot自定义过滤器继承OncePerRequestFilter时,使用@Resource注解时报错,说无法找到我定义的service类

代码呢。