Modernize Spring Boot Kotlin code
ProprietaryFind Kotlin-idiomatic violations in Spring Boot applications: Java-style SpringApplication.run, @Autowired / @Inject field injection, missing open on Spring-proxied classes, blocking Mono.block() calls, @RequestMapping candidates for @GetMapping, Mono<T> controllers that could be suspending, @ConfigurationProperties data class candidates, @Entity data class plugin reminders, @Transactional/@Async/@Cacheable on private/final methods, deprecated RestTemplate allocations, Mono/Flux ergonomic shapes, reactive-coroutine interop hazards, Spring annotation shapes, repository access patterns, and WebClient/ResponseEntity shapes.
org. openrewrite. kotlin. spring. Spring$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. Spring$KtRecipe'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.
- Find Spring Boot bootstrapping smells
- Find Spring dependency-injection smells
- Find Spring configuration smells
- Find Spring Web / WebFlux smells
- Find Spring coroutine-migration candidates
- Find Spring Data smells
- Find Spring testing smells
- Find Spring proxied-annotation smells
- Find Spring legacy / deprecated API smells
- Find Mono/Flux ergonomic smells
- Find reactive / coroutine interop hazards
- Find Spring annotation-shape smells
- Find Spring Data / repository access smells
- Find WebClient / RestTemplate / ResponseEntity smells