
springmvc
文章平均质量分 69
老姚1987
热爱生活,热爱技术,关注人工智能,机器学习,大数字,设计的老猿
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
spring mvc调用MessageConverter
RequestMappingHandlerAdapter handleInternal@Override protected ModelAndView handleInternal(HttpServletRequest request, HttpServletResponse response, HandlerMethod handlerMethod) throws Exception { ModelAndView mav; checkRequest(request); // E原创 2021-01-23 22:12:08 · 220 阅读 · 0 评论 -
spring mvc之HandlerMapping
AbstractHandlerMappingHandlerMapping组件代码采用模板模式组织,AbstractHandlerMapping是所有HandlerMapping组件的基础类,初始化 protected void initApplicationContext() throws BeansException { extendInterceptors(this.interceptors); detectMappedInterceptors(this.mappedInterceptor原创 2021-01-21 22:11:59 · 121 阅读 · 0 评论 -
spring mvc 渲染视图
ViewResolver的作用根据视图名找到视图view,它不是具体负责渲染视图,具体负责渲染视图的再view组件里面ViewResolver的初始化/** * Initialize the ViewResolvers used by this class. * <p>If no ViewResolver beans are defined in the BeanFactory for this * namespace, we default to InternalResour原创 2021-01-20 22:56:23 · 354 阅读 · 0 评论 -
spring mvc架构
请求处理流程[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-lcv67AHP-1601641042113)(http://i2.bvimg.com/664434/401d58119d13ae6b.jpg)]HandlerAdapter是Spring MVC内部使用的,Spring MVC会把控制器和后面要介绍的HandlerInterceptor包装为HandlerAdapter。HandlerMapping把控制器和HandlerInterceptor包装为Handl原创 2020-10-02 20:19:03 · 175 阅读 · 0 评论 -
tomcat源码解析视频教程
tomcat源码解析视频教程原创 2019-08-09 17:43:48 · 910 阅读 · 0 评论 -
spring mvc源码解析视频教程
spring mvc源码解析视频教程原创 2019-08-09 17:41:35 · 917 阅读 · 0 评论 -
使用springmvc下载文件
@RequestMapping(value = "downloadLicenseFile" , method = RequestMethod.GET) public ResponseEntity<byte[]> downloadLicenseFile(String path) throws IOException {...原创 2017-01-14 14:41:54 · 264 阅读 · 0 评论 -
springmvc中的resolveView(视图解析器)
视图解析器接口只有一个方法,就是根据名称解析出视图信息(一个视图对象View)采用的是模板模式 抽象模板类 AbstractCachingViewResolver 主要处理缓存,如果视图对象在缓存中有,则从缓存中取,如果没有则创建public View resolveViewName(String viewName, Locale locale) throws Exception {原创 2017-01-14 14:39:56 · 1972 阅读 · 1 评论 -
spring mvc 源码研读(一)
spring mvc的主逻辑处理流程在DispatcherServlet 类中的doDispatch方法中 /** * Process the actual dispatching to the handler. * <p>The handler will be obtained by applying the ...原创 2017-01-14 14:36:24 · 331 阅读 · 0 评论 -
sprinvmcv 修改关联对象
AuthorizeInfo(有权信息) 与VersionInfo(版本信息)是多对一关联,在页面修改授权信息在下拉框中选择版本信息实体后,修改请求@RequestMapping(value = "update" , method = RequestMethod.POST)public String update(AuthorizeInfo authorizeInfo,Long v...原创 2017-01-14 14:34:32 · 236 阅读 · 0 评论