Tag

HandlerMapping

1 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 3, 2023 · Backend Development

Master Custom HandlerMapping in Spring Boot: Header‑Based Routing with getCustomMethodCondition

This tutorial explains how to extend Spring MVC's HandlerMapping by implementing a custom RequestCondition that matches requests based on an x-token header and a custom @AKF annotation, covering code implementation, configuration, testing, and the underlying request‑matching mechanism.

Custom RequestConditionHandlerMappingHeader Authentication
0 likes · 7 min read
Master Custom HandlerMapping in Spring Boot: Header‑Based Routing with getCustomMethodCondition
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 12, 2023 · Backend Development

How to Create Custom HandlerMapping with Annotations in Spring Boot

This article explains how to simplify Spring MVC interface calls by defining custom annotations, implementing a custom HandlerMapping, configuring it in Spring Boot 2.6.12, and demonstrating usage with example code, while also covering related handler adapters and underlying principles.

Backend DevelopmentCustom AnnotationHandlerMapping
0 likes · 6 min read
How to Create Custom HandlerMapping with Annotations in Spring Boot
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
Mar 17, 2023 · Backend Development

How Spring’s DispatcherServlet Handles Requests: A Deep Dive into the Dispatch Process

This article explains how Spring’s DispatcherServlet processes incoming HTTP requests by locating the appropriate HandlerMapping, selecting a HandlerAdapter, invoking pre‑ and post‑handle interceptors, executing the controller method, and finally rendering the response or handling errors, with detailed code examples.

HandlerAdapterHandlerMappingSpring
0 likes · 12 min read
How Spring’s DispatcherServlet Handles Requests: A Deep Dive into the Dispatch Process
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 3, 2023 · Backend Development

Mastering WebSocket in Spring Boot 2.4: Custom HandlerMapping and Real‑Time Chat

Learn how the RFC 6455 WebSocket protocol works with Spring Boot 2.4.13, covering the HTTP upgrade handshake, server response, custom HandlerMapping, annotation‑driven routing, and a reactive chat handler implementation with code examples and deployment tips.

ChatHandlerMappingJava
0 likes · 7 min read
Mastering WebSocket in Spring Boot 2.4: Custom HandlerMapping and Real‑Time Chat
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
Nov 1, 2021 · Backend Development

Understanding Spring MVC Request Flow: Controllers, Handlers, and Adapters

This guide explains Spring MVC's request handling flow, detailing core components like DispatcherServlet, HandlerMapping, and HandlerAdapter, and demonstrates multiple controller definitions—including @RestController, HttpRequestHandler, Controller interface, and HttpServlet extensions—along with necessary configuration snippets.

Backend DevelopmentControllerHandlerMapping
0 likes · 5 min read
Understanding Spring MVC Request Flow: Controllers, Handlers, and Adapters
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
Dec 30, 2020 · Backend Development

Implementing Transparent RPC over Spring MVC: From REST to RPC Programming Model

The article explains how to replace a traditional Spring MVC‑based REST RPC framework with a transparent RPC model by extending DispatcherServlet, HandlerMapping, and HandlerAdapter, providing implicit service contracts, simplified client interfaces, and code examples for registration and request handling.

HandlerMappingJavaRPC
0 likes · 16 min read
Implementing Transparent RPC over Spring MVC: From REST to RPC Programming Model