Tag

dispatcher-servlet

1 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 29, 2024 · Backend Development

How to Apply a Global URL Prefix to All Spring Boot Controllers

This article explains multiple ways to apply a common URL prefix to all Spring Boot controllers, covering servlet‑context configuration, property settings, annotation‑based approaches, server‑side forwarding, and Nginx reverse‑proxy techniques, with code samples and discussion of their advantages and drawbacks.

NginxSpring Bootannotation
0 likes · 7 min read
How to Apply a Global URL Prefix to All Spring Boot Controllers
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.

HandlerAdapterHandlerMappingdispatcher-servlet
0 likes · 12 min read
How Spring’s DispatcherServlet Handles Requests: A Deep Dive into the Dispatch Process