![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springmvc
LHZHKTK
这个作者很懒,什么都没留下…
展开
-
spring 面试题
讲下SpringMvc的执行流程 系统启动的时候根据配置文件创建spring的容器, 首先是发送http请求到核心控制器disPatherServlet,spring容器通过映射器去寻找业务控制器, 使用适配器找到相应的业务类,在进业务类时进行数据封装,在封装前可能会涉及到类型转换,执行完业务类后使用ModelAndView进行视图转发,数据放在model中,用map传递数据进行页转载 2017-04-03 15:02:23 · 452 阅读 · 0 评论 -
getParameter和getAttribute的区别
1.getAttribute是取得jsp中 用setAttribute設定的attribute 2.parameter得到的是string;attribute得到的是object 3.request.getParameter()方法传递的数据,会从Web客户端传到Web服务器端,代表HTTP请求数据;request.setAttribute()和getAttribute()方法传递的数转载 2017-04-03 17:23:28 · 334 阅读 · 0 评论