采用配置的方式:

这里的所有定义,都会作为bean 存放到WebApplicationContext中
然后在所有的bean解析完之后,作为BeanPostProcesser 的 ApplicationContextAwareProcessor 调用 postProcessBeforeInitialization, 直到最后会调用 AbstractHandlerMapping. detectMappedInterceptors 把所有的interceptors 加载到这个类的adaptedInterceptors中
具体调用链:

真正在 detectMappedInterceptors 方法中,

会发现,怎么从所有bean中找到mvc:interceptors 呢: 是通过反射查找 MappedInterceptor 类型
然后mvc:interceptors 会什么是MappedInterceptor呢,定义的是 extends HandlerInterceptorAdapter
这里就是spring的xsd在work了, 具体的mvc:interceptor xsd一部分:

可以看到,这里就是说明mvc:interceptor 是MappedInterceptor
ok, 问题解决