springmvc 中 handlerAdapter 在适配什么?

@Override
public ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {

return ((Controller) handler).handleRequest(request, response);
}

handle方法中可以适配不同的handler的处理请求的方法,所以适配器模式,不仅有类的,接口的,还有方法的

猜你喜欢

转载自www.cnblogs.com/chuliang/p/9138623.html