Spring Security 5.4 introduces the ability to configure HttpSecurity by creating a SecurityFilterChain bean

MSAL

The Spring Security WebSecurityConfigurerAdapter was deprecated 5.7, this recipe will transform WebSecurityConfigurerAdapter classes by using a component based approach. Check out the spring-security-without-the-websecurityconfigureradapter blog for more details.

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

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