requestmappinghandlermapping
时间: 2023-08-13 16:07:16 浏览: 87
RequestMappingHandlerMapping是SpringMVC框架中的一个处理器映射器,它是HandlerMapping接口的一个实现类。它的主要作用是根据请求来获取对应的处理器(Handler),它会根据请求的路径(path)来找到一个最匹配的HandlerMethod来处理请求。RequestMappingHandlerMapping会与DispatcherServlet一起工作,在DispatcherServlet中会调用其getHandler方法来获取HandlerExecutionChain对象,然后将该对象返回给DispatcherServlet,以供后续的处理。RequestMappingHandlerMapping的命名来源于它专门用于处理使用@RequestMapping注解的方法。总之,RequestMappingHandlerMapping在SpringMVC中起到了寻找并映射请求处理器的重要作用。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [04-RequestMappingHandlerMapping](https://blog.csdn.net/my_momo_csdn/article/details/102923401)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [探索SpringMVC-HandlerMapping之RequestMappingHandlerMapping](https://blog.csdn.net/Evan_L/article/details/128356004)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *3* [RequestMappingHandlerMapping详解](https://blog.csdn.net/m0_51945027/article/details/119772969)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文