Use Environment#acceptsProfiles(Profiles)

MSAL

Environment#acceptsProfiles(String...) was deprecated in Spring Framework 5.1.

org.openrewrite.java.spring.framework.EnvironmentAcceptsProfiles
mod run . --recipe=org.openrewrite.java.spring.framework.EnvironmentAcceptsProfiles

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