摘要:        
ServletInvocableHandlerMethod.invokeAndHandle处理完request得到结果后调用returnValueHandlers.handleReturnValue处理返回值。 HandlerMethodReturnValueHandlerComposite.han    阅读全文
posted @ 2022-11-12 22:04
shigp1
阅读(40)
评论(0)
推荐(0)
        
            
        
        
摘要:        
@RequestBody标注的参数由RequestResponseBodyMethodProcessor解析。 RequestResponseBodyMethodProcessor.supportsParameter(MethodParameter parameter) public boolean    阅读全文
posted @ 2022-11-12 20:46
shigp1
阅读(273)
评论(0)
推荐(0)
        
            
        
        
摘要:        
DispatcherServlet.doService去处理请求时,调用getHandler去获取匹配请求的handle。会调用RequestMappingInfoHandlerMapping.handleMatch,这个方法会调用extractMatchDetails解析uri模板变量,MATRI    阅读全文
posted @ 2022-11-12 13:26
shigp1
阅读(195)
评论(0)
推荐(0)
        
            
        
        
摘要:        
如果参数是对象且没有注解,则参数由ServletModelAttributeMethodProcessor解析。解析如下参数: @PostMapping("/userParam0") @ResponseBody public User handleUserByParam0(User user) {     阅读全文
posted @ 2022-11-12 10:45
shigp1
阅读(129)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号