Migrate MvcRequestMatcher to PathPatternRequestMatcher
ProprietaryIn Spring Security 7.0, MvcRequestMatcher which depends on the deprecated HandlerMappingIntrospector is removed in favor of PathPatternRequestMatcher. This recipe migrates constructor and builder usage to the new pattern. Builder usage is left alone when any MvcRequestMatcher.Builder#servletPath call is found, as the servlet path would otherwise be dropped.
io. moderne. java. spring. security7. MigrateMvcRequestMatchermod run . --recipe= io. moderne. java. spring. security7. MigrateMvcRequestMatcherInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.