spring mvc 路人甲
时间: 2023-10-05 13:04:52 浏览: 176
Spring MVC是Spring Framework的一部分,用于构建Web应用程序的全功能MVC模块。它已经被融合在Spring Web Flow中,并在Spring MVC4中有了进一步的提升。
在Spring MVC中,路人甲(也可以称为普通用户)可以通过调用@Controller中标注了@RequestMapping的方法来处理请求。具体来说,通过调用org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod#invokeAndHandle方法来实现。
为了启用Spring MVC的注解配置功能,需要在配置类上标注@EnableWebMvc注解。这样,Spring MVC容器才会自动调用WebMvcConfigurer接口中的方法,进行相应的配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [精通Spring MVC 4](https://download.csdn.net/download/wuhongshen/10103859)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [万字长文,深度解析SpringMVC 源码,让你醍醐灌顶!!](https://blog.csdn.net/likun557/article/details/120299993)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [一文搞懂:SpringMVC全注解方式及原理](https://blog.csdn.net/likun557/article/details/120148045)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文