Spring Boot 2.x best practices

MSAL

Applies best practices to Spring Boot 2 applications.

org.openrewrite.java.spring.boot2.SpringBoot2BestPractices
mod run . --recipe=org.openrewrite.java.spring.boot2.SpringBoot2BestPractices

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. Remove @RequestMapping annotations
  2. Remove redundant @ExtendWith(SpringExtension.class)
  3. Remove the @Autowired annotation on inferred constructor
  4. Add missing @Configuration annotation
  5. Migrate RestTemplateBuilder
  6. Replace EnvironmentTestUtils with TestPropertyValues
  7. Separate application.properties by profile
  8. Separate application YAML by profile