SpringMVC5.2
2020-04-09 17:17:53 0 举报
从底层源码深入理解SpringMVC工作原理, 基于Spring 5.2源码
作者其他创作
大纲/内容
HandlerInterceptor
doService()
DispatcherServlet
WebApplicationInitializer
onStartup(ServletContext servletContext);
HandlerAdaptor
preHandle()
handleChain.applyPreHandler()
HandlerExecutionChain
HandlerInterceptorsHandlerMethod
createApplicationContext()registerDispatcherServlet()
handleChain.applyPostHandler()
HandlerMethod
beanTypemethod
ServletInvocableHandlerMethod
invokeAndHandle()
AbstractDispatcherServletInitializer
getHandler()
HandlerExecutionChain handlerChain = getHandler(req)
Handler
HandlerExecutionChain
supports(handler)
mv = adaptor.handle(req)
getHandlerAdaptor(handler)
HandlerMapping
postHandle()
handle(req)
processDispatchResult()
getHandler(req)
InvocableHandlerMethod
invokeForRequest()doInvoke() //method.invoke(args)
List<HandlerMapping>List<HandlerAdapter>List<ViewResolver>ThemeResolver
handleChain.getHandler()
0 条评论
回复 删除
下一页