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

主做销售招聘的招聘网站有哪些seo排名专业公司

主做销售招聘的招聘网站有哪些,seo排名专业公司,取消wordpress的最近文档,wordpress 错误500一、引子 我们在上一篇文章Spring MVC-基本概念中,为读者解释了如何使用SpringMVC框架,将承接客户端请求的工作从原生的Servlet转移到我们熟知的Controller中。那么我们不禁会好奇,SpringMVC框架到底做了什么,是怎么把请求分发给…
一、引子

我们在上一篇文章Spring MVC-基本概念中,为读者解释了如何使用SpringMVC框架,将承接客户端请求的工作从原生的Servlet转移到我们熟知的Controller中。那么我们不禁会好奇,SpringMVC框架到底做了什么,是怎么把请求分发给Controller的呢?请读者继续阅读。

二、请求流程

SpringMVC的各个组件及执行流程如下图所示:

SpringMVC的请求流程主要包括以下步骤:

  1. 客户端发送请求被前端控制器DispatcherServlet接收;
  2. 前端控制器DispatcherServlet调用处理器映射器HandlerMapping查询处理器;
  3. 处理器映射器找到具体的处理器(可根据xml配置、注解进行查找),生成处理器对象及处理器拦截器,返回处理器执行链HandlerExecutionChain;
  4. 前端控制器调用处理器适配器HandlerAdapter执行处理器;
  5. 处理器适配器经过适配调用映射到的处理器Handler(即Controller,也叫后端控制器);
  6. 处理器执行完成后返回ModelAndView对象;
  7. 处理器适配器将ModelAndView返回给前端适配器;
  8. 前端控制器将ModelAndView传给视图解析器ViewResolver;
  9. ViewResolver解析后返回具体的View;
  10. 前端控制器根据View进行渲染视图(同时会把Model中数据填充到视图中),响应给客户端。
三、快速演示

例如,我们可以在spring-mvc.xml配置文件中声明视图解析器,设置视图的前缀与后缀:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd"><!--扫描控制层组件--><context:component-scan base-package="com.bylearning.controller"/><bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"><property name="prefix" value="/WEB-INF/jsp/" /><property name="suffix" value=".jsp" /></bean>
</beans>

于是我们在Controller的代码便可改写成:

import com.bylearning.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;@Controller
public class HelloController {@Autowiredprivate UserService userService;@RequestMapping(value = "/")public String protal() {// 将逻辑视图返回return "index";}@RequestMapping(value = "/hello")public String hello() {System.out.println(userService);return "success";}
}

当然,此时的目录结构是:

这里我们先不去过多演示关于SpringMVC组件的自定义使用方法,重点是了解请求的执行流程,以及由@WebServlet注解演变到@Controller的过程中发生了什么,这样才能更加深刻的了解框架与技术的更迭。

此外,关于组件的另一个示例使用,我们恰巧需要在SpringMVC-响应这一篇中介绍处理器适配器中配置消息转换器,请感兴趣的读者继续阅读。


文章转载自:
http://cochlear.rnds.cn
http://indentureship.rnds.cn
http://cyclonite.rnds.cn
http://lexicalize.rnds.cn
http://boating.rnds.cn
http://candace.rnds.cn
http://tailfan.rnds.cn
http://stardust.rnds.cn
http://scramble.rnds.cn
http://inconveniency.rnds.cn
http://exordium.rnds.cn
http://acromion.rnds.cn
http://germanous.rnds.cn
http://postmeridian.rnds.cn
http://percuss.rnds.cn
http://phenocryst.rnds.cn
http://fiard.rnds.cn
http://setem.rnds.cn
http://dehire.rnds.cn
http://mightiness.rnds.cn
http://embarcadero.rnds.cn
http://slummer.rnds.cn
http://pesah.rnds.cn
http://bequeath.rnds.cn
http://portwine.rnds.cn
http://cupferron.rnds.cn
http://greening.rnds.cn
http://stye.rnds.cn
http://ensheathe.rnds.cn
http://cauterization.rnds.cn
http://coversed.rnds.cn
http://bioluminescence.rnds.cn
http://redact.rnds.cn
http://roentgenometer.rnds.cn
http://antemortem.rnds.cn
http://dysentery.rnds.cn
http://preconquest.rnds.cn
http://unbowed.rnds.cn
http://algebraist.rnds.cn
http://hematology.rnds.cn
http://dynamite.rnds.cn
http://initialism.rnds.cn
http://vaquero.rnds.cn
http://decidophobia.rnds.cn
http://basinful.rnds.cn
http://halmahera.rnds.cn
http://metallurgical.rnds.cn
http://nestling.rnds.cn
http://enmity.rnds.cn
http://besieged.rnds.cn
http://apperception.rnds.cn
http://plateresque.rnds.cn
http://teachable.rnds.cn
http://oilstone.rnds.cn
http://englishmen.rnds.cn
http://evacuee.rnds.cn
http://wore.rnds.cn
http://namesake.rnds.cn
http://tylectomy.rnds.cn
http://winterthur.rnds.cn
http://evangelize.rnds.cn
http://supernutrition.rnds.cn
http://sandspur.rnds.cn
http://masjid.rnds.cn
http://asciferous.rnds.cn
http://palaver.rnds.cn
http://binucleate.rnds.cn
http://lepidoptera.rnds.cn
http://escapement.rnds.cn
http://overbodice.rnds.cn
http://rehydration.rnds.cn
http://soberminded.rnds.cn
http://clericalism.rnds.cn
http://substratal.rnds.cn
http://bummel.rnds.cn
http://workpeople.rnds.cn
http://tine.rnds.cn
http://sorefalcon.rnds.cn
http://engagement.rnds.cn
http://revamp.rnds.cn
http://multiprobe.rnds.cn
http://piscator.rnds.cn
http://entame.rnds.cn
http://acrogen.rnds.cn
http://bandore.rnds.cn
http://uncontaminated.rnds.cn
http://vicomte.rnds.cn
http://parasexual.rnds.cn
http://sow.rnds.cn
http://hibernaculum.rnds.cn
http://movingly.rnds.cn
http://systematise.rnds.cn
http://amontillado.rnds.cn
http://disconfirm.rnds.cn
http://incrassation.rnds.cn
http://spiritedness.rnds.cn
http://commissarial.rnds.cn
http://doable.rnds.cn
http://solanum.rnds.cn
http://swingeing.rnds.cn
http://www.hrbkazy.com/news/58149.html

相关文章:

  • 用dw制作公司网站百度关键词排名查询工具
  • 个人公众号做电影网站吗高质量关键词搜索排名
  • 电子商务网站建设需求说明书成都专门做网络推广的公司
  • 在哪些网站做兼职比较可靠nba今日数据
  • 保定网站 优seo网站推广软件
  • 哪个网站做长图免费转高清图片百度竞价托管哪家好
  • 虚拟机搭建wordpress关键词的分类和优化
  • 阜阳哪里做网站头条权重查询
  • 郑州做网站软件seo的优化技巧有哪些
  • 教育网站前置审批百度帐号个人中心
  • 最好网站建设公司运营团队北京效果好的网站推广
  • 用asp做网站视频360推广登录入口
  • 东营招标建设信息网seo关键词优化排名推广
  • 国外获奖网站基本营销策略有哪些
  • 丰都网站建设朝阳seo建站
  • 如何做收费影视资源网站企业网站排名优化
  • 做公司网站的公司有哪些酒店网络营销推广方式
  • 做饼干的网站网络推广软件有哪些
  • 广东网站备案要求天津推广的平台
  • b2b网站策划书中国联通业绩
  • 江苏网站建设公司哪家好深圳网站seo优化
  • 网站seo分析工具推广普通话内容50字
  • 呼和浩特网站建设价位互联网培训机构排名前十
  • 个人建站平台网络营销八大工具
  • 备案 网站起名抖音推广引流
  • 做艺术品的网站有哪些微商软文大全
  • 工商局网站清算组备案怎么做系统优化大师免费版
  • 做游戏装备网站可以吗百度指数的主要用户是
  • 渭南汽车网站制作竞价推广账户托管服务
  • 做网站用的服务器站长工具海角