Tagged articles
DispatcherServlet
24 articles · Page 1 of 1
This article traces an HTTP request through Spring Boot's Servlet and reactive stacks, explaining how SpringApplication chooses between Tomcat and Netty, detailing Netty's event-loop decoding, Spring Cloud Gateway's routing and filtering, Tomcat's request processing to DispatcherServlet, and four common gateway-downstream issues including timeout alignment, header forwarding, thread-model mismatch, and unsafe retries.
DispatcherServletNettyReactive Programming
0 likes · 24 min read

This article explains how SpringBoot’s DispatcherServlet acts as the central dispatcher of the Web module, detailing its role and the surrounding core components—HandlerMapping, HandlerAdapter, HandlerExceptionResolver, ViewResolver, and HttpMessageConverter—along with practical code examples and common pitfalls.
DispatcherServletHandlerAdapterHandlerMapping
0 likes · 14 min read

This article demonstrates a Spring Boot 3 multi‑module architecture where each module runs its own DispatcherServlet and ApplicationContext while sharing a common parent container, providing complete code examples, configuration steps, and testing insights for building loosely‑coupled backend services.
ApplicationContextDispatcherServletMulti-Module
0 likes · 7 min read

This article explores how SpringBoot 2.6.12 injects HttpServletRequest into controllers using JDK dynamic proxies and ThreadLocal, detailing the underlying ObjectFactoryDelegatingInvocationHandler, RequestObjectFactory, RequestContextHolder, and DispatcherServlet processing flow with code examples and explains why injecting HttpServletRequest and HttpServletResponse in a controller is safe.
DispatcherServletHttpServletRequestJava
0 likes · 7 min read

This article explains how Spring 5.3.23 uses web.xml to configure a ContextLoaderListener that creates and refreshes the parent WebApplicationContext, and how DispatcherServlet initializes the child container, detailing the configuration parameters, default locations, and the refresh process.
ApplicationContextContextLoaderListenerDispatcherServlet
0 likes · 12 min read

This article explains how Spring MVC handles incoming requests by detailing each core component—from DispatcherServlet to ViewResolver—and demonstrates various controller definitions, including @RestController, HttpRequestHandler, custom Controller, and servlet-based approaches, with code examples and configuration tips.
ControllerDispatcherServletHandlerMapping
0 likes · 5 min read

This article explains how Spring MVC handles exceptions, detailing the role of DispatcherServlet, the chain of HandlerExceptionResolver implementations, the controller invocation flow, and the internal mechanisms that resolve errors, including fallback to the default /error endpoint.
DispatcherServletException HandlingJava
0 likes · 8 min read

This article explains how Spring configures its parent and child application contexts using web.xml, ContextLoaderListener, and DispatcherServlet, detailing the loading of configuration files, context class determination, bean definition processing, and the refresh cycle that ultimately stores the WebApplicationContext in the ServletContext.
ContextLoaderListenerDispatcherServletJava
0 likes · 12 min read

This guide explains the fundamentals of Netty, shows how to combine it with Spring MVC using DispatcherServlet, and provides complete Java code examples for a Netty server, channel pipeline, request handler, server startup, and a sample controller, along with practical configuration tips.
BackendDispatcherServletHTTP server
0 likes · 14 min read

This article explains, using servlet source code as a starting point, how Spring MVC registers @RequestMapping‑annotated controllers into RequestMappingHandlerMapping during container initialization and how the DispatcherServlet processes incoming HTTP requests by locating the appropriate HandlerMethod through a series of handler mappings and interceptor chains.
DispatcherServletHandlerMappingJava
0 likes · 17 min read

This article explains step‑by‑step how Spring MVC handles an incoming HTTP request, detailing the roles of DispatcherServlet, HandlerMapping, HandlerAdapter, argument and return value resolvers, and ViewResolver, and includes key code excerpts that illustrate the matching and initialization processes.
DispatcherServletJava backendRequest Handling
0 likes · 7 min read


ZhiKe AIOct 9, 2021 · Backend Development
The article dissects Spring MVC’s core request flow, detailing how DispatcherServlet extends HttpServlet, delegates to FrameworkServlet, and ultimately routes requests through doService, doDispatch, handler adapters, interceptors, and result processing, with code excerpts illustrating each step.
DispatcherServletFrameworkServletJava Servlet
0 likes · 6 min read

This article explains how Spring MVC evolved from basic Servlets to a front‑controller architecture, detailing the roles of DispatcherServlet, HandlerMapping, HandlerInterceptor, ModelAndView, and ViewResolver in streamlining request handling, business logic separation, and view rendering for modern Java web applications.
DispatcherServletHandlerMappingJava
0 likes · 18 min read

This article explains how Spring MVC evolved from basic Servlets to a sophisticated two‑level controller architecture, detailing the roles of DispatcherServlet, HandlerMapping, HandlerInterceptor, Handler, ModelAndView, ViewResolver, and View, while showing configuration examples and code snippets.
DispatcherServletHandlerMappingJava
0 likes · 17 min read

This article walks through the evolution from traditional Servlets to Spring MVC's DispatcherServlet, explaining how each component—Servlet, BaseServlet, DispatcherServlet, HandlerMapping, HandlerInterceptor, HandlerExecutionChain, ModelAndView, ViewResolver, and View—contributes to a cleaner, more modular server‑side architecture.
DispatcherServletHandlerMappingJava
0 likes · 17 min read

This article explains how Spring MVC evolved from basic Servlets to a two‑level controller architecture, detailing the roles of DispatcherServlet, HandlerMapping, HandlerInterceptor, ModelAndView, ViewResolver and View, and shows configuration examples that simplify server‑side development in Java web applications.
DispatcherServletHandlerMappingJava
0 likes · 16 min read

This article walks through the complete request processing flow of SpringBoot 2.2.6's DispatcherServlet, detailing how it obtains the HandlerExecutionChain, resolves the appropriate HandlerMethod via RequestMappingHandlerMapping, selects a HandlerAdapter, executes interceptors, invokes the controller method, and finally processes the response with converters and advice.
DispatcherServletHandlerAdapterHandlerMapping
0 likes · 14 min read

This article explains how Spring MVC works by walking through a simple SSM project, showing the controller implementation, configuration files, deployment steps, and then detailing the ten-step request‑handling flow from DispatcherServlet to the final view rendering.
DispatcherServletJavaMVC Architecture
0 likes · 7 min read

This article introduces Spring MVC, explains the problems of mixing JSP and Servlets, details the MVC layered architecture, walks through essential configuration files and Maven dependencies, presents sample controller code, and analyzes the DispatcherServlet source to illustrate the complete request‑response flow in a Java web application.
ConfigurationDispatcherServletJava
0 likes · 23 min read

This article explains the role of Spring's DispatcherServlet, details its traditional web.xml configuration, walks through its request‑handling workflow, and shows how Spring Boot automatically configures and registers the servlet using concise code examples and annotations.
AutoConfigurationDispatcherServletSpring
0 likes · 12 min read

This article walks through the Spring MVC request handling pipeline step by step, explaining how DispatcherServlet sets attributes, resolves handlers, invokes handler adapters, runs pre‑ and post‑interceptors, creates ModelAndView, resolves the view and finally renders the response, with code examples from the original framework.
DispatcherServletHandlerAdapterJava
0 likes · 5 min read

This article explains the MVC pattern and provides a detailed introduction to Spring MVC, covering its core DispatcherServlet, required web.xml configuration, request processing flow, key components such as HandlerMapping, HandlerAdapter, ViewResolver, and includes code examples and component descriptions for backend developers.
DispatcherServletJavaMVC
0 likes · 10 min read

This tutorial walks through creating a miniature Spring MVC framework using only the JDK, covering custom annotations, package scanning, component instantiation, dependency injection, URL mapping, and a custom DispatcherServlet, with complete code structure and runtime demonstration.
BackendCustom AnnotationsDispatcherServlet
0 likes · 8 min read

This article explains how Spring MVC integrates web capabilities by configuring web.xml, initializing the root WebApplicationContext via ContextLoaderListener, creating a child context for DispatcherServlet, and managing the hierarchical relationship between the two contexts to share beans across a Java web application.
ContextLoaderListenerDispatcherServletWebApplicationContext
0 likes · 11 min read
