Maintain trailing slash URL mappings
MSALThis is part of Spring MVC and WebFlux URL Matching Changes, as of Spring Framework 6.0, the trailing slash matching configuration option has been deprecated and its default value set to false. This means that previously, a controller @GetMapping("/some/greeting") would match both GET /some/greeting and GET /some/greeting/, but it doesn't match GET /some/greeting/ anymore by default and will result in an HTTP 404 error. This recipe is to maintain trailing slash in all HTTP url mappings.
org. openrewrite. java. spring. boot3. MaintainTrailingSlashURLMappingsmod run . --recipe= org. openrewrite. java. spring. boot3. MaintainTrailingSlashURLMappingsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.