Register a UrlHandlerFilter to preserve trailing slash matching

Proprietary

Spring Framework 7.0 removes PathMatchConfigurer.setUseTrailingSlashMatch(true). When trailing slash matching was enabled, this recipe registers a UrlHandlerFilter bean (Spring Framework 6.2+/Boot 4) that transparently handles trailing slashes, preserving behavior regardless of how routes are declared. The filter is ordered ahead of the security filter chain (per its javadoc): the servlet variant via a FilterRegistrationBean, the reactive variant as an @Ordered WebFilter bean. A literal false argument enables nothing, so no filter is registered.

io.moderne.java.spring.framework.MigrateTrailingSlashMatch
mod run . --recipe=io.moderne.java.spring.framework.MigrateTrailingSlashMatch

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.