Migrate Spring Framework to Spring Boot

Proprietary

Migrate non Spring Boot applications to the latest compatible Spring Boot release. This recipe will modify an application's build files introducing Maven dependency management for Spring Boot, or adding the Gradle Spring Boot build plugin.

io.moderne.java.spring.boot.SpringToSpringBoot
mod run . --recipe=io.moderne.java.spring.boot.SpringToSpringBoot

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. Migrate to Spring Framework 3.x
  2. Migrate Spring Framework dependencies to Spring Boot
  3. Replace Spring Framework dependencies with Spring Boot starters
  4. Add @SpringBootApplication class
  5. Add Spring Boot 4 starters for the libraries in use on Spring Framework 7
  6. Mark embedded server as provided for WAR projects
  7. Migrate beans.xml to Spring Framework configuration class
  8. Migrate web.xml to WebApplicationInitializer