Tagged articles

Trailing Slash

5 articles · Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 9, 2026 · Backend Development

Handling Trailing‑Slash URLs in Spring Boot 3 with UrlHandlerFilter

This article shows how Spring Boot 3.5.0’s built‑in UrlHandlerFilter can safely handle trailing‑slash URLs by either issuing a permanent redirect or wrapping the request, with step‑by‑step examples for Spring MVC, custom servlet filters, reactive WebFlux filters, and equivalent Nginx configuration.

Servlet FilterSpring BootTrailing Slash
0 likes · 9 min read
Handling Trailing‑Slash URLs in Spring Boot 3 with UrlHandlerFilter
Java Architecture Diary
Java Architecture Diary
Aug 21, 2023 · Backend Development

How to Fix Spring Boot 3 Trailing Slash URL Mismatch After Upgrade

This article explains why URL mappings that worked in Spring Boot 2.x break after upgrading to Spring Boot 3, demonstrates the issue with trailing slashes, and provides three practical solutions—including a filter, Nginx rule, and Spring Cloud Gateway optimization—to restore correct routing.

Spring BootTrailing Slashfilter
0 likes · 5 min read
How to Fix Spring Boot 3 Trailing Slash URL Mismatch After Upgrade
Open Source Linux
Open Source Linux
Oct 21, 2021 · Backend Development

How the Trailing Slash in Nginx proxy_pass Changes Request Routing

This article examines how the presence or absence of a trailing slash in Nginx's location blocks and proxy_pass directives affects URL matching and request forwarding, illustrating four proxy_pass scenarios with examples and providing configuration experiments to help avoid common pitfalls.

Trailing Slashlocationnginx
0 likes · 7 min read
How the Trailing Slash in Nginx proxy_pass Changes Request Routing