Tag

DispatcherServlet

0 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 15, 2023 · Backend Development

How SpringBoot Injects HttpServletRequest via ThreadLocal: A Deep Dive

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
How SpringBoot Injects HttpServletRequest via ThreadLocal: A Deep Dive
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 16, 2023 · Backend Development

How Spring Initializes Parent and Child Containers via web.xml

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
How Spring Initializes Parent and Child Containers via web.xml
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 8, 2023 · Backend Development

How Spring MVC Processes Requests: Core Components and Controller Variants

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
How Spring MVC Processes Requests: Core Components and Controller Variants
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 15, 2023 · Backend Development

Mastering Spring MVC Exception Handling: From DispatcherServlet to Custom Resolvers

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.

Backend DevelopmentDispatcherServletException Handling
0 likes · 8 min read
Mastering Spring MVC Exception Handling: From DispatcherServlet to Custom Resolvers
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 28, 2022 · Backend Development

Understanding Spring’s Parent and Child Container Initialization in XML Config

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.

Backend DevelopmentContextLoaderListenerDispatcherServlet
0 likes · 12 min read
Understanding Spring’s Parent and Child Container Initialization in XML Config
YunZhu Net Technology Team
YunZhu Net Technology Team
Nov 12, 2021 · Backend Development

Understanding How Spring MVC DispatcherServlet Registers Controllers and Dispatches Requests via HandlerMapping

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
Understanding How Spring MVC DispatcherServlet Registers Controllers and Dispatches Requests via HandlerMapping
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 27, 2021 · Backend Development

How Spring MVC Processes a Request: From DispatcherServlet to ViewResolver

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.

DispatcherServletHandlerMappingJava backend
0 likes · 7 min read
How Spring MVC Processes a Request: From DispatcherServlet to ViewResolver
Top Architect
Top Architect
May 14, 2021 · Backend Development

Understanding Spring MVC: From Servlets to DispatcherServlet and Request Handling

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.

Backend DevelopmentDispatcherServletHandlerMapping
0 likes · 17 min read
Understanding Spring MVC: From Servlets to DispatcherServlet and Request Handling
Selected Java Interview Questions
Selected Java Interview Questions
Apr 29, 2021 · Backend Development

Understanding Spring MVC: From Servlets to DispatcherServlet and Request Handling

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.

Backend DevelopmentDispatcherServletHandlerMapping
0 likes · 16 min read
Understanding Spring MVC: From Servlets to DispatcherServlet and Request Handling
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 18, 2021 · Backend Development

Inside SpringBoot 2.2.6 DispatcherServlet: From doDispatch to Response Handling

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
Inside SpringBoot 2.2.6 DispatcherServlet: From doDispatch to Response Handling
Selected Java Interview Questions
Selected Java Interview Questions
Nov 12, 2020 · Backend Development

Understanding the Execution Process of Spring MVC with a Sample Application

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.

Backend DevelopmentDispatcherServletJava
0 likes · 7 min read
Understanding the Execution Process of Spring MVC with a Sample Application
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 12, 2020 · Backend Development

Spring MVC Introduction, Core Principles, and Source Code Analysis

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.

Backend DevelopmentConfigurationDispatcherServlet
0 likes · 23 min read
Spring MVC Introduction, Core Principles, and Source Code Analysis
Java Captain
Java Captain
Dec 2, 2018 · Backend Development

Deep Dive into Spring MVC Request Processing Flow

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
Deep Dive into Spring MVC Request Processing Flow
Java Captain
Java Captain
Oct 30, 2018 · Backend Development

Understanding Spring MVC: Architecture, Core Components, and Configuration

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.

Backend DevelopmentDispatcherServletJava
0 likes · 10 min read
Understanding Spring MVC: Architecture, Core Components, and Configuration
Java Captain
Java Captain
Sep 16, 2018 · Backend Development

Building a Mini Spring MVC Framework from Scratch Using Pure JDK

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.

DispatcherServletJavaSpring MVC
0 likes · 8 min read
Building a Mini Spring MVC Framework from Scratch Using Pure JDK
Qunar Tech Salon
Qunar Tech Salon
May 30, 2016 · Backend Development

Spring MVC Web Configuration and Context Initialization Process

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.

Backend DevelopmentContextLoaderListenerDispatcherServlet
0 likes · 11 min read
Spring MVC Web Configuration and Context Initialization Process