HandlerAdapter 适配了哪些处理器
AnnotionMethodHandlerAdapter:主要适配注解类处理器:我们常用的@Controller 这类处理器
HttpRequestHandlerAdapter:主要适配静态资源适配器:实现了HTTPRequestHander接口 ,主要作用:通过SpringMVC来访问静态资源请求
SimpleControllerHandlerAdapter:SimpleControllerHandlerAdapter:是Controller适配器,适配了Controller接口或Controller接口的子类的处理器
比如我们经常自己写的Controller来继承MultiActionController注意:Spring5.0版本遗弃,4.0版本才有
SimpleServletHandlerApapter:是Servlet的适配器,适配实现了Servlet接口或接口子类的处理器,我们不用不仅可以在web.xml 里面配置Servlet,其实也可以用SpringMVC 来配置 Servlet,不过这个适配器很少用到,SpringMVC默认的适配器没有他,默认是前三种
注意:AnnotionMethodHandlerAdapter 适配的是 我们的注解处理器而SimpleControllerHandlerAdapter适配的是我们的Controller 接口或者接口下的子类处理器 是不一样的 不要混淆了