当前位置: 首页 > news >正文

关于网站建设的简历模板佛山高端网站建设工作室

关于网站建设的简历模板,佛山高端网站建设工作室,个人微网站怎么做,汉口江岸区城市建设局网站四、SpringMVC执行流程 1.SpringMVC 常用组件 DispatcherServlet#xff1a;前端控制器#xff0c;用于对请求和响应进行统一处理HandlerMapping#xff1a;处理器映射器#xff0c;根据 url/method可以去找到具体的 Handler(Controller)Handler:具体处理器#xff08;程…四、SpringMVC执行流程 1.SpringMVC 常用组件 DispatcherServlet前端控制器用于对请求和响应进行统一处理HandlerMapping处理器映射器根据 url/method可以去找到具体的 Handler(Controller)Handler:具体处理器程序员以后开发这一部分需要HandlerAdapter处理器适配器进行处理器方法的执行ViewResolver处理视图相关的 2.处理流程图 3.执行流程原理分析 3.1DispatcherServlet 初始化操作 protected void initStrategies(ApplicationContext context) {this.initMultipartResolver(context);this.initLocaleResolver(context);this.initThemeResolver(context);this.initHandlerMappings(context);this.initHandlerAdapters(context);this.initHandlerExceptionResolvers(context);this.initRequestToViewNameTranslator(context);this.initViewResolvers(context);this.initFlashMapManager(context);}具体处理请求的方法 protected final void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {//删掉了一系列没用方法try {//具体执行方法this.doService(request, response);} catch (IOException | ServletException var16) {failureCause var16;throw var16;} catch (Throwable var17) {failureCause var17;throw new NestedServletException(Request processing failed, var17);} finally {this.resetContextHolders(request, previousLocaleContext, previousAttributes);if (requestAttributes ! null) {requestAttributes.requestCompleted();}this.logResult(request, response, (Throwable)failureCause, asyncManager);this.publishRequestHandledEvent(request, response, startTime, (Throwable)failureCause);}}protected void doService(HttpServletRequest request, HttpServletResponse response) throws Exception {//删掉一系列干扰代码try {//具体执行this.doDispatch(request, response);} finally {if (!WebAsyncUtils.getAsyncManager(request).isConcurrentHandlingStarted() attributesSnapshot ! null) {this.restoreAttributesAfterInclude(request, attributesSnapshot);}}}protected void doDispatch(HttpServletRequest request, HttpServletResponse response) throws Exception {HttpServletRequest processedRequest request;HandlerExecutionChain mappedHandler null;boolean multipartRequestParsed false;WebAsyncManager asyncManager WebAsyncUtils.getAsyncManager(request);try {try {ModelAndView mv null;Object dispatchException null;try {processedRequest this.checkMultipart(request);multipartRequestParsed processedRequest ! request;//获取处理器就是具体的需要执行的 TontrollermappedHandler this.getHandler(processedRequest);if (mappedHandler null) {this.noHandlerFound(processedRequest, response);return;}//获取处理器适配器HandlerAdapter ha this.getHandlerAdapter(mappedHandler.getHandler());String method request.getMethod();boolean isGet GET.equals(method);if (isGet || HEAD.equals(method)) {long lastModified ha.getLastModified(request, mappedHandler.getHandler());if ((new ServletWebRequest(request, response)).checkNotModified(lastModified) isGet) {return;}}if (!mappedHandler.applyPreHandle(processedRequest, response)) {return;}//具体调用 Controller 中的方法mv ha.handle(processedRequest, response, mappedHandler.getHandler());if (asyncManager.isConcurrentHandlingStarted()) {return;}this.applyDefaultViewName(processedRequest, mv);mappedHandler.applyPostHandle(processedRequest, response, mv);} catch (Exception var20) {dispatchException var20;} catch (Throwable var21) {dispatchException new NestedServletException(Handler dispatch failed, var21);}this.processDispatchResult(processedRequest, response, mappedHandler, mv, (Exception)dispatchException);} catch (Exception var22) {this.triggerAfterCompletion(processedRequest, response, mappedHandler, var22);} catch (Throwable var23) {this.triggerAfterCompletion(processedRequest, response, mappedHandler, new NestedServletException(Handler processing failed, var23));}} finally {if (asyncManager.isConcurrentHandlingStarted()) {if (mappedHandler ! null) {mappedHandler.applyAfterConcurrentHandlingStarted(processedRequest, response);}} else if (multipartRequestParsed) {this.cleanupMultipart(processedRequest);}}}//获取具体执行的 protected HandlerExecutionChain getHandler(HttpServletRequest request) throws Exception {if (this.handlerMappings ! null) {Iterator var2 this.handlerMappings.iterator();while(var2.hasNext()) {HandlerMapping mapping (HandlerMapping)var2.next();HandlerExecutionChain handler mapping.getHandler(request);if (handler ! null) {return handler;}}}return null;}3.2HandlerMapping dbug 的图示
http://www.huolong8.cn/news/378988/

相关文章:

  • 网站界面设计的要求宜春建设局网站
  • 京东网站建设邯郸房产网安居客
  • 做ppt好的网站有哪些找网站建设都需要注意哪些
  • 贵阳网站建设centos怎么装WordPress
  • wordpress商城模板添加产品百度刷排名seo软件
  • 做新的网站做网站如何注意排版问题
  • 后台模板链接前台网站莆田专业网站建设公司
  • 国外网站后台模板wordpress怎么用ip访问
  • 免费自己建网站施工企业项目经理部管理人员对外行为的法律后果
  • 视频类网站如何做缓存教育培训机构加盟
  • 做网站和网页介绍做茶工艺的网站
  • 如何编程建设网站自己嘉定注册公司
  • 网站建设体质喝什么茶dedecms 网站导航
  • 卖友情链接的哪来那么多网站图片制作视频短片用什么软件好
  • 定制网站建设宝安西乡专业店面店铺装修设计
  • 大连做网站qq群优秀网页设计作品
  • 网站设计公司哪里好网站建设的几大要素
  • 西宁公司网站设计网站 html
  • 新开的公司建立网站有哪些要做的海口手机版网站建设
  • 在线制作网页网站临沂网站建设电话
  • 临海网站开发公司wordpress系统和插件
  • 徐州网站制作报价asp网站制作成品作业
  • 织梦网站模块婚礼模板
  • 做网站推广怎么做企业网站建设报价方案
  • 怎么用centos做网站谈谈网站建设创新问题
  • 廊坊网站建设方案wordpress如何通过后台增加主菜单
  • 中国建设教育协会的网站查询国内免费的vps
  • 域联网站建设node.js做企业网站
  • 学做川菜网站wordpress 特色
  • 佛山网站建设哪个好网站怎样做wap端