Spring Boot 3.3 best practices (only)
MSALApplies best practices to Spring Boot 3 applications, without chaining in upgrades to Spring Boot.
org. openrewrite. java. spring. boot3. SpringBoot3BestPracticesOnlymod run . --recipe= org. openrewrite. java. spring. boot3. SpringBoot3BestPracticesOnlyInstall 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.
- Normalize Spring properties to kebab-case
- Enable virtual threads on Java 21
- Remove
publicfrom@Beanmethods - Bean methods should return concrete types
- Replace String literals with Spring constants
- Simplify unnecessary
MediaType.parseMediaType()andMediaType.valueOf()calls - Simplify
WebTestClientexpressions - Remove unnecessary
@Repositoryannotation from Spring DataRepositorysub-interface - Remove
HttpExchangeannotations - Spring Security best practices