spring_boot[请求参数类型]
作者:互联网
//DispatcherServlet
1.DispatcherServlet ---> doDispatch //请求分发
2.mappedHandler = this.getHandler(processedRequest); //获取目标方法
3.HandlerAdapter ha = this.getHandlerAdapter(mappedHandler.getHandler()) //获取适配器
4.mv = ha.handle(processedRequest, response, mappedHandler.getHandler()); //执行当前适配器
//RequestMappingHandlerAdapter
5. invocableMethod.invokeAndHandle(webRequest, mavContainer, new Object[0]); /执行目标方法
//ServletInvocableHandlerMethod
6.Object returnValue = this.invokeForRequest(webRequest, mavContainer, providedArgs); //执行方法
//InvocableHandlerMethod 解析参数
7.InvocableHandlerMethod ==》getMethodArgumentValues //根据参数类型,获取参数解析器
8.HandlerMethodArgumentResolverComposite ===》
标签:请求,spring,mappedHandler,boot,webRequest,参数,getHandler,适配器,processedRequest 来源: https://www.cnblogs.com/mikeshc/p/14510035.html