Replace String literals with Spring constants

MSAL

Replace String literals with Spring constants where applicable.

org.openrewrite.java.spring.boot3.ReplaceStringLiteralsWithConstants
mod run . --recipe=org.openrewrite.java.spring.boot3.ReplaceStringLiteralsWithConstants

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

Recipe list

It runs these recipes, in this order.

  1. Replace String literals with HttpHeaders constants
  2. Replace String literals with MediaType constants