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

个人网站设计作品展示沌口开发区网页设计

个人网站设计作品展示,沌口开发区网页设计,网站怎么开发,wordpress4.6免费主题1、处理流程图展示 当我拿出这张图,阁下又该如何应对呢?执行流程是不是一目了然了。【记住一句话:所有的注解都只是一个标签或者标记,最终都是反射找到具体方法上面的注解标记,然后找到类、属性、方法扩展自己想要的功…

1、处理流程图展示

当我拿出这张图,阁下又该如何应对呢?执行流程是不是一目了然了。【记住一句话:所有的注解都只是一个标签或者标记,最终都是反射找到具体方法上面的注解标记,然后找到类、属性、方法扩展自己想要的功能功能。】
在这里插入图片描述

2、DispatcherServlet:中央处理器或者中央调度器

在这里插入图片描述

下图官方的解释应该最完善了。
在这里插入图片描述

3、SpringMVC三大核心组件

  • HandlerMapping
    处理器映射器,作用是解析URL,返回执行链以及一些列所需的拦截器(DispatcherServlet源代码1030行的doDispatch(HttpServletRequest request, HttpServletResponse response)方法里面清晰地展示了执行流程,大家有兴趣了可以去看看,就是一个方法套方法的执行链条,最终将请求进行处理,直到返回ModelAndView。)
/*** Process the actual dispatching to the handler.* <p>The handler will be obtained by applying the servlet's HandlerMappings in order.* The HandlerAdapter will be obtained by querying the servlet's installed HandlerAdapters* to find the first that supports the handler class.* <p>All HTTP methods are handled by this method. It's up to HandlerAdapters or handlers* themselves to decide which methods are acceptable.* @param request current HTTP request* @param response current HTTP response* @throws Exception in case of any kind of processing failure*/@SuppressWarnings("deprecation")// 最核心的请求、响应处理方法protected void doDispatch(HttpServletRequest request, HttpServletResponse response) throws Exception //封装好的请求实例HttpServletRequest processedRequest = request;// 处理器执行责任链HandlerExecutionChain mappedHandler = null;//是否是多媒体文件请求boolean multipartRequestParsed = false;//WebAsyncManager asyncManager = WebAsyncUtils.getAsyncManager(request);try {ModelAndView mv = null;Exception dispatchException = null;try {processedRequest = checkMultipart(request);multipartRequestParsed = (processedRequest != request);// 传递请求,最终初始化处理器映射器mappedHandler = getHandler(processedRequest);if (mappedHandler == null) {noHandlerFound(processedRequest, response);return;}// 根据前面的处理器映射器初始化处理器适配器HandlerAdapter ha = getHandlerAdapter(mappedHandler.getHandler());// 拿到请求方式String method = request.getMethod();//是否是GET请求boolean isGet = HttpMethod.GET.matches(method);if (isGet || HttpMethod.HEAD.matches(method)) {long lastModified = ha.getLastModified(request, mappedHandler.getHandler());if (new ServletWebRequest(request, response).checkNotModified(lastModified) && isGet) {return;}}if (!mappedHandler.applyPreHandle(processedRequest, response)) {return;}// 真正的处理请求,并返回模型和视图mv = ha.handle(processedRequest, response, mappedHandler.getHandler());if (asyncManager.isConcurrentHandlingStarted()) {return;}applyDefaultViewName(processedRequest, mv);mappedHandler.applyPostHandle(processedRequest, response, mv);}catch (Exception ex) {dispatchException = ex;}catch (Throwable err) {// As of 4.3, we're processing Errors thrown from handler methods as well,// making them available for @ExceptionHandler methods and other scenarios.dispatchException = new NestedServletException("Handler dispatch failed", err);}// 封装视图结果processDispatchResult(processedRequest, response, mappedHandler, mv, dispatchException);}catch (Exception ex) {triggerAfterCompletion(processedRequest, response, mappedHandler, ex);}catch (Throwable err) {triggerAfterCompletion(processedRequest, response, mappedHandler,new NestedServletException("Handler processing failed", err));}finally {if (asyncManager.isConcurrentHandlingStarted()) {// Instead of postHandle and afterCompletionif (mappedHandler != null) {mappedHandler.applyAfterConcurrentHandlingStarted(processedRequest, response);}}else {// Clean up any resources used by a multipart request.if (multipartRequestParsed) {cleanupMultipart(processedRequest);}}}}
http://www.yayakq.cn/news/263666/

相关文章:

  • 福州网站设计哪家好手机公众平台网站开发
  • 上海城乡住房建设部网站wordpress图片加框架
  • 网页设计作品网站react做网站
  • 如何在阿里网站做外单销售的网络建设
  • 浦江县做网站wordpress忘记用户名密码
  • 怎么学好网站建设建筑网站知名度
  • 二手网站哪些做的比较好域名注册网站系统
  • 网站支持qq登录怎么做成都网站建设138
  • 新网站备案网站商务通登陆不上
  • 采购网站官网软件定制开发软件
  • 网站怎样和首页做链接地址content timeline wordpress
  • 2017网站开发语言wordpress建教学网站
  • 网站备案被注销怎么办有创意的婚纱网站模板
  • 私人怎么做彩票网站平台青海 住房和建设厅网站
  • 网站源码做exe执行程序上饶建网站公司
  • 怎么样做购物网站济南好的网站建设公司
  • 建网站学什么软件移动建站优化
  • 建网站怎么起名字新手学习做网站
  • 成营销型网站制作万网域名解析教程
  • 校本教研网站建设安徽设计公司排名
  • 中交建设 招标有限公司网站做网站有多赚钱
  • 建设微信商城网站制作免费建立网站软件
  • 中国英文政务网站建设东莞企业为什么网站建设
  • 旅游网站建设步骤国外知名平面设计网站
  • 怎么做网站小图标高端网站建设公司新鸿儒
  • 怎么做多个网站单点登录专业做毕业设计网站
  • 网站内容包括广告设计公司的未来
  • 做移动端网站设计html网站开发简历
  • 市场调研报告模板范文seo网站推广怎样
  • 做的网站很卡是什么原因python建设电子商务网站