SpringMVC创建filter时出现错误

img

img

img

img


请问我是哪里出错了,我看错误的原因好像是无法转换还是没有创建那个对象。请问是我导包的问题吗

MyInterceptor类上加注解@Component

你搞这些干啥,直接bean写你的拦截器

img