Spring.AOP-MVC-DOdispatch
2021-12-19 18:57:24 6 举报
Spring时序图
作者其他创作
大纲/内容
返回HandlerMapping
renderMergedOutputModel
postProcessAfterInitialization
是否实现instanceof InitializingBean
ModelAndView
createAopProxy
返回List chain
proceed
RequestMappingHandlerAdapter
创建代理对象:
ReflectiveMethodInvocation
new MethodBeforeAdviceAdapternew AfterReturningAdviceAdapternew ThrowsAdviceAdapter
urlLookup.get(urlPath)
View
DispatcherServlet#initHandlerMappings
new JdkDynamicAopProxy(config)
invokeInitMethods
AbstractAdvisorAutoProxyCreator
热度召回
方法是否匹配MethodMatchers.matches
createProxy
initializeBean
new ObjenesisCglibAopProxy(config)
response.getOutputStream()
getAdvicesAndAdvisorsForBean
detectHandlerMethods
AbstractHandlerMethodMapping
没有
如果可以被代理specificInterceptors != DO_NOT_PROXY
保险频道页信息离线数据拼装
第一页数据从本地缓存中查询Cms融合信息进行Cms人工干预
有
getHandlerInternal
BeanPostProcessor
BeanNameUrlHandlerMapping
getHandlerAdapter
DispatcherServlet
getInstance
RequestMappingHandlerMapping
AbstractAutowireCapableBeanFactory
创建MethodInvocation
调用(以JDK代理为例)
invokeModelAttributeMethods
IOC
调用召回
applyBeanPostProcessorsAfterInitialization
doDispatch
initModel
getInterceptorsAndDynamicInterceptionAdvice
HandlerAdapter
返回
拼装
getDefaultStrategies
invokeHandlerMethod
策略规则处理
DefaultAopProxyFactory
doCreateBean
离线和新品重新排序
AdvisedSupport
getModelAndView
SpringMVC 请求被调用
isHandler
SpringMVC#doDispatch
createBean
AdvisorAdapterRegistry
initHandlerMethods
render
invoke
findEligibleAdvisors
AbstractHandlerMapping
ListspecificInterceptors
afterPropertiesSet
createDefaultStrategy
ModelFactory
GlobalAdvisorAdapterRegistry
adapters.add
保险直播tab
registerHandlerMethod
getHandler
拼装直播有效数据
递归调用所有的切面方法interceptor.invoke
AbstractView
handleInternal
有的话
register
AbstractHandlerMethodAdapter
AbstractJackson2View
method.invoke
是否有@Controller@RequestMapping注解
JdkDynamicAopProxy
DispatcherServlet.properties
lookupHandlerMethod
interceptorsAndDynamicMethodMatchers
MappingRegistry
findAdvisorsThatCanApply
processDispatchResult
DefaultAdvisorChainFactory
离线数据
invokeForRequest
返回ModelAndView
handle
wrapIfNecessary
MappingRegistry/内部类
initHandlerMappings
getAutowireCapableBeanFactoy
找一个实现类
getMappingsByUrl
AbstractAutoProxyCreator
SpringMVC初始化策略
InvocableHandlerMethod
收藏
0 条评论
下一页