Remove deprecated setPathMatcher() calls
ProprietaryIn Spring Framework 7.0, PathMatcher and AntPathMatcher are deprecated in favor of PathPatternParser, which has been the default in Spring MVC since 6.0. This recipe removes calls to setPathMatcher(new AntPathMatcher()) since they are now redundant. The default PathPatternParser provides better performance through pre-parsed patterns.
io. moderne. java. spring. framework. RemoveSetPathMatcherCallmod run . --recipe= io. moderne. java. spring. framework. RemoveSetPathMatcherCallInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.