Spring Boot 2.x best practices
MSALApplies best practices to Spring Boot 2 applications.
org. openrewrite. java. spring. boot2. SpringBoot2BestPracticesmod run . --recipe= org. openrewrite. java. spring. boot2. SpringBoot2BestPracticesInstall 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.
- Remove
@RequestMappingannotations - Remove redundant
@ExtendWith(SpringExtension.class) - Remove the
@Autowiredannotation on inferred constructor - Add missing
@Configurationannotation - Migrate
RestTemplateBuilder - Replace
EnvironmentTestUtilswithTestPropertyValues - Separate
application.propertiesby profile - Separate application YAML by profile