filmov
tv
Spring MVC: Ignore Trailing Slashes in URL with Spring Framework 6
Показать описание
In Spring Framework 6, trailing slashes "/" in URLs are no longer matched to the same endpoints without the slashes. Before that change, you could visit /ping or /ping/, and it would get matched to the same controller endpoint.
This no longer works, and eventually, you have to update your API clients or perform automatic redirects in your load balancers or controllers.
But for the time being, you can override this behavior in your configuration. Just be aware that this approach is deprecated and will eventually be removed.
🙌 *Get in Touch*
🎙 *Gear & Links*
_I may earn a small commission for purchases made through the links above at no additional cost to you._
🍿 *Subscribe*
Want to see more tech tutorials? Subscribe now!
This no longer works, and eventually, you have to update your API clients or perform automatic redirects in your load balancers or controllers.
But for the time being, you can override this behavior in your configuration. Just be aware that this approach is deprecated and will eventually be removed.
🙌 *Get in Touch*
🎙 *Gear & Links*
_I may earn a small commission for purchases made through the links above at no additional cost to you._
🍿 *Subscribe*
Want to see more tech tutorials? Subscribe now!