Use the new securityMatcher() method

MSAL

In Spring Security 5.8, the HttpSecurity#antMatcher(), HttpSecurity#mvcMatcher(), and HttpSecurity#regexMatcher() methods were deprecated in favor of new HttpSecurity#securityMatcher() method. Refer to the Spring Security docs for more information.

org.openrewrite.java.spring.security5.UseNewSecurityMatchers
mod run . --recipe=org.openrewrite.java.spring.security5.UseNewSecurityMatchers

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