视图解析原理简单分析
在doInvoke方法中 执行了 return KotlinDetector.isSuspendingFunction(method) ? CoroutinesUtils.invokeSuspendingFunction(method, this.getBean(), args) : method.invoke(this.getBean(), args);
然后会进入controller方法 拿到return 的值

通过返回值解析器转成字符串

判断是否重定向

然后进入处理分发结果方法 进行渲染


进行视图解析

进行视图解析

视图解析器

进入resolveviewname 得到候选view 和媒体信息 就是






等下画个图
浙公网安备 33010602011771号