Servlet
Servlet
HttpServlet、doGet、doPost等、service()等balabala
非线程安全
可以说单例
Servlet容器(Tomcat)
…
Spring MVC 的 DispatcherServlet
关键词:
DispatcherServlet、Handler(Controller)、HandlerMethod(@RequestMapping)
RequestMappingInfo、map<RequestMappingInfo, HandlerMethod>、urlMap<url, RequestMappingInfo>
- 在urlMap 中查询对应的url,获取RequestMappingInfo
- 在map中查询对应RequestMappingInfo,获取对应的HandlerMethod。该方法则是请求所对应的处理方法
https://juejin.cn/post/6844903735303503880
还有 RequestMapping:https://www.cnblogs.com/grasp/p/11100124.html